19-04-19 01:35 AM
Answered! Go to Answer.
07-08-20 10:41 AM
Hello Hiago,
Here is an example of JSON being sent as custom code to the JIRA API that we use in the CoE. You can send this body in different formats as long as the context is correct.
The square brackets are used to denote variables which we can manipulate for each individual post call.
{ { "update": {},
"fields": {
"project": {
"id": "[project id]"
},
"parent": {
"id": "[parent id]",
"key": "[parent key]",
"self": "https://blueprism.atlassian.net/rest/api/2/issue/[parent id]"
},
"summary": "[summary]",
"description": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "[description]"
}
]
}
]
},
"issuetype": {
"self": "https://blueprism.atlassian.net/rest/api/2/issuetype/10155",
"id": "10155",
"description": "Subtasks track small pieces of work that are part of a larger task.",
"iconUrl": "https://blueprism.atlassian.net/secure/viewavatar?size=medium&avatarId=10316&avatarType=issuetype",
"name": "Subtask",
"subtask": true,
"avatarId": 10316,
"entityId": "ba2e8546-1eab-438f-a50e-c6f6a0065c23"
}
}
}
07-08-20 10:41 AM
Hello Hiago,
Here is an example of JSON being sent as custom code to the JIRA API that we use in the CoE. You can send this body in different formats as long as the context is correct.
The square brackets are used to denote variables which we can manipulate for each individual post call.
{ { "update": {},
"fields": {
"project": {
"id": "[project id]"
},
"parent": {
"id": "[parent id]",
"key": "[parent key]",
"self": "https://blueprism.atlassian.net/rest/api/2/issue/[parent id]"
},
"summary": "[summary]",
"description": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "[description]"
}
]
}
]
},
"issuetype": {
"self": "https://blueprism.atlassian.net/rest/api/2/issuetype/10155",
"id": "10155",
"description": "Subtasks track small pieces of work that are part of a larger task.",
"iconUrl": "https://blueprism.atlassian.net/secure/viewavatar?size=medium&avatarId=10316&avatarType=issuetype",
"name": "Subtask",
"subtask": true,
"avatarId": 10316,
"entityId": "ba2e8546-1eab-438f-a50e-c6f6a0065c23"
}
}
}
07-08-20 01:35 PM