Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Could not update issuelinks in Additional Fields

eric_legroux_consulteer_com September 5, 2022

I try to update issuelinks OutwardIssue but it doesnt work.

On the issue, I have a link: Outwardissue (blocks) with one entry.

issue link linked issue 

X-12: blocks  X-34

To the issue,X-12,  I need to add

issue link linked issue 

X-12 is blocked by X-56

and

X-12 blocks X-78

X-12 blocks X-90

--------------------------------

The result shoulde be

issue link  linked issue 

X-12 is blocked by X-56

X-12 blocks  X-34

X-12 blocks X-78

X-12 blocks X-90

---------------------------------

adding inwardissues X-56 (is blocked by) works fine

adding 2 outwardissues (blocks)  X-78 and X_90 doesnt work! what's wrong?

----------------------------------------

I use this script:

{"update": {
"issuelinks": [
{
"add": {
"type": {
"name": "Blocks"
},
"inwardIssue": {
"key": "X-56"
}
}
}
]
}
}
{"update": {
"issuelinks": [
{
"add": {
"type": {
"name": "Blocks"
},
"OutwardIssue": {
"key": "X-78",
"key": "X-90"
}
}
}
]
}
}

--------------------------------------------

what goes wrong?

 

1 answer

1 accepted

1 vote
Answer accepted
Guilhem Dupuy
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.
September 5, 2022

Hi @eric_legroux_consulteer_com ,

The Jira issue links work both ways; if you add a link on issue A saying it's "blocking" issue B, it will automatically mark issue B as being "blocked" by issue A.

I think that's why your rule doesn't work, maybe try your script with only the inward link part ?

Let me know if it helps,

Guilhem

eric_legroux_consulteer_com September 5, 2022

Many Thanks!

it works using the inward link only, but this could not be the ouward link should work also...

Like Guilhem Dupuy likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events