I am new to the use of Adaptivist, however, we are having a challenge linking a defect to a user story that will then be shown in the backlog
I don't know how you want to do it (how your process will work) but here is how you can link between issues :
'/rest/api/2/issueLink') <br> .header('Content-Type',<span> </span>'application/json') <br> .body([ <br> type: [ name:<span> </span>"Resolves" ], //The link name <br> outwardIssue: [ id: issueId ], <span> </span>// This is the issue that the link 'starts' at<br> inwardIssue: [ key: secondIssueKey ] <span> </span>// You'll need to specify an issue ID or key here <br>]) <br>.asString()<br>assert link.status ==<span> </span>201def link = post(
'/rest/api/2/issueLink'
)
<br>
.header(
'Content-Type'
,<span> </span>
'application/json'
.body([
<br>
type: [ name:<span> </span>
"Resolves"
],
//The link name <br>
outwardIssue: [ id: issueId ], <span> </span>
// This is the issue that the link 'starts' at<br>
inwardIssue: [ key: secondIssueKey
] <span> </span>
// You'll need to specify an issue ID or key here
])
.asString()<br>
assert
link.status ==<span> </span>
201
Please notice to change the link type- name to the relevant link name, <strong>issueId</strong> and the secondIssueKey params to the releavent issues.
<strong>issueId</strong> and the
secondIssueKey
It looks like you're new here. Sign in or register to get started.