I am trying to create an issue via Jira REST API on Postman and Link that issue to existing issue in JSM based on custom field.
Is there any way to Link the issue with existing issues.
Here is my Json to Create an Issue in Jira.
"fields":{
"project":{
"key":"APPI"
},
"priority":{
"name":"Low"
},
"summary":"Test_P2",
"description":{
"type":"doc",
"version":1,
"content":[
{
"type":"paragraph",
"content":[
{
"type":"text",
"text":"Description Test"
}
]
}
]
},
"issuetype":{
"name":"Problem."
},
"assignee":{
"name": "as"
},
"customfield_1000":"Request type",
"customfield_1031":[{'test':
"customfield_1015":"Test_Hard",
"customfield_1030":"Test",
"customfield_1031":"Plants",
"customfield_1032":"line"
Hello,
Please review below link:
You can use solution 2 from above if you want to do it at the time of issue creation, or,
if you want to do it in 2 steps, do it like in solution 1, that is, create your issue, and then make a call to POST rest/api/2/issueLink ..
Hello. The JSON you have shared isnt valid..
I was able to create an issue and link using below JSON. You can just pass a smart value for the issue you want to link it to and also change link type as needed..
{
"fields": {
"project": {
"key": "SUP"
},
"priority": {
"name": "High"
},
"summary": "Test_Postman1",
"description": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "description"
}
]
}
]
},
"issuetype": {
"name": "Task"
}
},
"update": {
"issuelinks": [
{
"add": {
"type": {
"name": "Blocks",
"inward": "is blocked by",
"outward": "blocks"
},
"outwardIssue": {
"key": "SUP-1"
}
}
}
]
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have updated the Json, getting below error
Error : {"errorMessages":[],"errors":{"priority":"Field 'priority' cannot be set. It is not on the appropriate screen, or unknown."}}
I have verified the Priority screen its already existed in Create Screen and edit screen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.