Comment added to blocked issue when multiple blockers are resolved?

Ben Stolman January 21, 2022

In some instances, I have an issue blocked by two other issues. When those two issues are moved from Validation to Done, I would like a comment added to the blocked issue that it is no longer blocked.

3 answers

2 accepted

1 vote
Answer accepted
Ben Stolman January 22, 2022

Solution.JPG

Worked like a charm I just did blocks instead of is blocked by

Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 22, 2022

@Ben Stolman This may introduce a bug if you have linked an issue from a blocked issue to another issue with relation "blocked by"

And we have to keep an eye on the number of automation that it runs!!

Ben Stolman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 22, 2022

Thanks for the advice. How can I avoid this bug?

0 votes
Answer accepted
Paul O
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.
January 22, 2022

You should be able to do this with an automation similar to the one shown below - amending the logic to suit your specific needs.

The automation below fires when a ticket is set to done. (Step - When: Issue transitioned)

It then checks all the tickets which this ticket blocks (Step - For Linked issues)

For each of those issues that this ticket blocks, a query is run to check if the status of ALL blocking tickets is now done  (Step - If Linked issues match)

If all blocking issues are now done, a comment is added to the unblocked issue   (Step - Then: Add comment)

 

Screenshot 2022-01-22 at 16.30.56.png

Ben Stolman January 22, 2022

Thank you so much for your help

0 votes
Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 22, 2022

Hi @Ben Stolman 

I know the automation is working, but as I said this may introduce a bug, can you try the below Automation and let me know if its works?

JQL - You limit this to project by adding AND project = project-key

WS1.pngWS2.pngWS3.png

Thanks,
Pramodh

Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 22, 2022

It makes sure for every step, you have the defined steps checked

Say if the blocked issue is transitioned, it makes sure that it has linked issue

Then for the linked issue, it checks all the blocked issues are in done status!!

Suggest an answer

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

Atlassian Community Events