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
@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)
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.