Forums

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

Stop Trigger Issue from Resolving if linked issue not Closed / Rejected

Ste404
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.
November 2, 2022

Hi there,

I know I can set a workflow condition to prevent a transition if sub-tasks are not in the state of DONE.

Is there something similar for linked issues?

I have a request that when approved created a linked procurement issue.

The main issue (the triggering issue) can be resolved or cancelled though and the linked issue could still be in progress.  I couldn't see a transition condition to add for that and was wondering how people would handle this scenario?

Thanks

3 answers

1 vote
Joseph Chung Yin
Community Champion
November 2, 2022

@Ste404 -

In our env, we use custom WF condition check, so the a parent issue with linked issues where the linked issues are not completed, then the parent issue will not be able to move to RESOLVED.

This type of setup was made a lot easier by using the following add-on (Which in my opinion, it is a must have add-on to any existing Jira/JSM env)

https://marketplace.atlassian.com/apps/292/jira-misc-workflow-extensions-jmwe?tab=overview&hosting=cloud

Condition - https://innovalog.atlassian.net/wiki/spaces/JMWEC/pages/929136658/Linked+Issues+Status+Condition

Of course you can also use the Validator configuration setup using the same above add-on to raise an validation error when one moves the parent issue to RESOLVED.

Validator -

https://innovalog.atlassian.net/wiki/spaces/JMWEC/pages/932151306/Linked+Issues+Status+Validator

Hope this helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Infrastructure Applications Team

Viasat Inc.

0 votes
Hamza Chundrigar
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.
November 2, 2022

Hi Steven,

I don't believe you can set validators or condition for links, not with out-of-the-box Jira anyway.

There are different Atlassian Marketplace apps/add-ons you can use. One example is ScriptRunner which you can use to write out a script that can help you achieve this scenario.

If using an addon isn't possible, then as a workaround you might consider creating an automation that checks for all linked issues are done, but if some of the linked issues (under the main one) are still in progress, then you could notify the main issue assignee via email/comment (and maybe transition the trigger issue back into 'X' status).

 

Cheers,

Hamza

0 votes
Ste404
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.
November 2, 2022

I have this automation in place and it writes the correct message to the log when the linked issue is not in the correct status, but I am not sure how to transition the parent ticket back as the status is already then set to canceled or rejected.
Capture.JPG

Joseph Chung Yin
Community Champion
November 2, 2022

@Ste404 -

You should not use automation for Jira to conduct the above check.  The proper way is to prevent the parent issue from transition into the CLOSED/CANCELLED status when condition is not met or raise an validation error before the transition.

Best, Joseph

Hamza Chundrigar
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.
November 2, 2022

Try adding another action ---> Then: Transition the issue to <target status>

Remember to make sure that your project workflow has a transition (path) that allows an issue to move from a resolved/done status to the target status you want the issue to transition back to.

Also, remember to clear the resolution field through a workflow post-function.

Ste404
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.
November 2, 2022

I think that automation is borked as I think it is trying to transition the linked issue.  When I put a transition in back to In Progress it spits out errors that the status doesn't exist.

Which is correct for the linked issue... so need to rethink the approach.

Like Krzysztof Jaworski likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events