How to create test with link to story

Viktor Procházka February 21, 2018

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&currentIssueKey=null&query=",
"hasDefaultValue": false,
"operations": ["add"]
},

Many many thanks.

2 answers

2 accepted

0 votes
Answer accepted
Viktor Procházka July 11, 2018

OK fixed by this artickle. It sounds like there is no way, how to do it in one step.

0 votes
Answer accepted
Marcin Żurawiecki
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
February 21, 2018

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

Viktor Procházka February 21, 2018

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.

Suggest an answer

Log in or Sign up to answer