I want to block transition of a task to 'In Test' unless all of the linked dependent tasks in a different repo have a particular status.
If you are open to using apps and looking for a ready-to-use solution. We've developed the Linked Issues Validator available as part of the Workflow Building Blocks for Jira app. With a wizard-like UI, you can choose relations from: sub-tasks, parent issues, epic children, and linked issues. Additionally, you can filter relations by issue types and select criteria based on status category and status.
I hope it will help.
Cheers
You could solve this in numerous ways.
Quick & dirty solution
1. Create a custom field but don't make it visible on the Edit Screen, but not View or Create Screen of the issue type you're working on.
2. Use Jira Automation (a global rule that can only be managed by admins) to trigger on 'Task closed > check parent > for parent, check if all linked childs/tickets are matching a certain JQL (as in "all are closed") > then fill a certain value in the created custom field.
3. THen, in the workflow for the ticket that must not go to 'In Test' if the linked tickets are not closed, you can add a condition for 'Value Field', referring to the custom field that you are updating via Automation to be a certain value. If that value is met, then the condition will allow the transition to be visible.
It's not pretty, but it should work. Again, if you need to do this more often, definitely consider Marketplace apps for this :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Hans Polder _Devoteam_ - I am trying to stay away from a paid marketplace option which can be quite expensive. I will look at your alternate solution.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.