Forums

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

Transition a ticket based on linked work

Dd
Contributor
November 3, 2025

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  

2 answers

2 votes
Jeroen Poismans
Community Champion
November 3, 2025

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):

  • Lookup issues:
    issue IN linkedIssues("{{issue.key}}", "<the blocked by linktype>") and resolution != Unresolved
  • If this returns 0 results then the current issue isn't blocked anymore by an open linked issue, so
    • Transition to OPEN
  • If this return results, still blocked
    • Do nothing

With this and the documentation you should be able to get there:
https://support.atlassian.com/cloud-automation/docs/jira-cloud-automation/

Good luck!

Dd
Contributor
November 3, 2025

Thanks - looks promising

Like Valerie Knapp likes this
1 vote
Valerie Knapp
Community Champion
November 3, 2025

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

 

Valerie Knapp
Community Champion
November 3, 2025

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:

 Screenshot 2025-11-03 124830.png

Action: Transition the object to an open status, in this case, 'To do'

Screenshot 2025-11-03 125049.png

Let us know if you have questions / need other help.

Cheers

Like Karan Sachdev likes this
Dd
Contributor
November 3, 2025

I'll try that and/or the other

Thanks

 

Like Valerie Knapp likes this

Suggest an answer

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

Atlassian Community Events