I found out in META under create test field "issuelinks". There is missing any description in API reference manual. No idea how it works.
My question is, how it works? Exists some example? Because when I send:
{
"fields": {
"project": {
"key": "GBUR"
},
"issuetype": {
"name": "Test"
},
"summary": "Linked test to one story",
"issuelinks": [{
"add": {
"type": {
"name": "Blocks",
"inward": "is blocked by",
"outward": "blocks"
},
"outwardIssue": {
"key": "GBUR-255"
}
}
}]
}
}
I get:
{
"errorMessages": [],
"errors": {
"issuelinks": "Field does not support update 'issuelinks'"
}
}
It sounds, like this is not allowed. No idea why?
META is under "Test" this:
"issuelinks": {
"required": false,
"schema": {
"type": "array",
"items": "issuelinks",
"system": "issuelinks"
},
"name": "Linked Issues",
"autoCompleteUrl": "https://jira.xz.com/rest/api/2/issue/picker?currentProjectId=&showSubTaskParent=true&showSubTasks=true¤tIssueKey=null&query=",
"hasDefaultValue": false,
"operations": ["add"]
},
Many many thanks.
OK fixed by this artickle. It sounds like there is no way, how to do it in one step.
Hello Viktor,
Check this article on creating/editing issue links: https://confluence.atlassian.com/jirakb/how-to-use-rest-api-to-add-issue-links-in-jira-issues-939932271.html
Hope it helps.
Kind regards,
Marcin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for quick answer. I know this artickle. But is oriented on UPDATE, I want to know, how to use field "linkedissues". Nothing more, less.
In this artickle is an mistake, because there is shown "update" field, which not exists in META for create issue.
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.