Forums

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

How to remove blocked by link from issue when blocking issue got Done status

Елена Елена
Contributor
February 13, 2024

Hello there,

I need to write automation rule for the case:

When issue blocking the issue is in Done, blocked issue should lose the red color (we identify so blocked issues).

i see the following rule:

to change "blocked by" into "related".

But I don't how to make this flow in Jira as i have no experience in automation

Thanks

2 answers

0 votes
Bill Sheboy
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.
February 13, 2024

Hi @Елена Елена 

One easy way to do this with an automation rule is to remove the "blocked by" link and then add a new one for "relates to".

A more complicated approach would be to edit the link type, and that would require calling a REST API function using the Send Web Request action.

Kind regards,
Bill

0 votes
Sudarsana G
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.
February 13, 2024

Define Trigger:

The trigger for this rule would be when the status of the blocking issue transitions to "Done".
Define Conditions:

You may want to include conditions to ensure that the issue transitioned is indeed the one blocking other issues and that it's currently in the "Done" status.
Define Actions:

The action would involve updating the blocked issues that are affected by this transition to remove the red color or any other visual indicator you're using to identify blocked issues.
You would likely need to use a custom field, such as a label or a flag, to track whether an issue is blocked or not. Then, you would remove or update this field accordingly.
Here's a general outline of how you can set up this automation rule in Jira:

Trigger:

When an issue transition occurs.
Conditions:

Check if the transitioned issue is the one blocking other issues.
Check if the transitioned issue is in the "Done" status.
Actions:

Find all issues that are blocked by the transitioned issue.
Update the visual indicator (e.g., remove red color) for these blocked issues.
Please note that the specifics of implementing this automation rule may depend on the capabilities and limitations of the automation features available in your Jira instance. You might need to experiment and adjust the rule to fit your exact requirements and the functionalities provided by your Jira instance.

Елена Елена
Contributor
June 14, 2024

Screenshot 2024-06-14 at 13.46.17.png

how to Find all issues that are blocked by the transitioned issue. ?

 

Suggest an answer

Log in or Sign up to answer