JIRA issue linking through rest api.

Srikanth Kola March 23, 2017

Can anyone tell whats the REST api call to JIRA issue link name "is executed by" ?

I am trying to pass name "is executed by" through POST /rest/api/2/issueLink,  However this name is not being accepted, its throws below error.

 

Error:

4 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Volodymyr Krupach
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 24, 2017

I am not sure why the name does not work for you. You can try an id:

"type": {
        "id": 123
    },

You can get the id by checking Issue Linking screen under JIRA administration and hoovering over Edit links:

image2017-3-24 11:3:26.png

 

0 votes
Srikanth Kola March 24, 2017

This is to create "is executes" relation which works. However i need "is executed by" relation, I cannot find the "name" for it. @Volodymyr Krupach

0 votes
Srikanth Kola March 24, 2017
{
    "type": {
        "name": "Executes"
    },
    "inwardIssue": {
        "key": "[entry.jiraIssue.key]"
    },
    "outwardIssue": {
        "key": "[entry.issueReturnTextOracle.label]"
    }
}
0 votes
Volodymyr Krupach
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 23, 2017

Please post here your JSON.

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events