I'm looking for a way in automation to do the following:
Have a scheduled task that runs every night
For each work in the BLOCKED state and has a BLOCKED BY link, go over the works that BLOCK it (linked to it).
If all the works that are BLOCKING have a resolution (e.g. fixed), then TRANSITION it back to OPEN
Thanks
Hi,
Perfectly possible natively! I will get you started, but you will have to implement yourself. Her is what the rule could look like.
Trigger: Scheduled with JQL => Get all issues with status = BLOCKED
Steps (will be performed for each issue):
issue IN linkedIssues("{{issue.key}}", "<the blocked by linktype>") and resolution != Unresolved
With this and the documentation you should be able to get there:
https://support.atlassian.com/cloud-automation/docs/jira-cloud-automation/
Good luck!
Hi @Dd , thanks for your post.
I think this is more likely a scheduled job or scripted listener type of functionality, using ScriptRunner or another app.
Please check out the https://www.scriptrunnerhq.com/help/example-scripts?ScriptRunner%5BrefinementList%5D%5Bapp%5D%5B0%5D=script-runner-jira&ScriptRunner%5BrefinementList%5D%5Bfeature%5D%5B0%5D=listeners&ScriptRunner%5Bpage%5D=2 example scripts here.
You could probably modify this one - https://www.scriptrunnerhq.com/help/example-scripts/change-epic-status-when-resolution-set-cloud to do what you want.
You could try to do this with automation but we usually ask that, for help with automations, that you have a go at trying to write the automation yourself and that we would provide troubleshooting to get it working, rather than just write it for you.
Have you already had an attempt at trying to get something to work?
Please can you share your strategy and results so far here?
Best wishes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I got this working, but I am not sure if it is exactly what you want / need -
Trigger: Schedule on this JQL
issueLinkType = "blocks" and statusCategory NOT IN ("To Do", Done)
Condition:
 
Action: Transition the object to an open status, in this case, 'To do'
Let us know if you have questions / need other help.
Cheers
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.