How to write a automation rule so that when blocked issue is done then need to add a comment

Akshith Rekulapelli August 25, 2023

Hi,

I want to write an automation rule so whenever the blocked issue (linked issue) status is Done. then need to add a comment on the destination Issue.

The below rule isn't working for us.

Blocked Issue.JPG

1 answer

1 accepted

1 vote
Answer accepted
David Blank
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.
August 25, 2023

Hi @Akshith Rekulapelli ,

 

I am doing something like this in an automation in my org, except I am not triggering my rule on the linking, but instead on the transition to done. To follow my implementation you will want to arrange it a bit differently than you have it above.

I am triggering on the transition, then making sure there is a linked issue with the blocks type. Lastly, for the linked issue with the blocks link type I am adding a comment and mentioning the owner.

Here is a screenshot of mine:

Screenshot 2023-08-25 at 2.34.16 PM.png

 

If you want the rule to fire when the issue is linked, I think you could still use my screenshot above, but replace the When: Issue transitioned with When: Issue Linked

David Blank
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.
August 25, 2023

Here is what I am using to mention the owner in case it is helpful: [~accountid:{{issue.fields.Assignee.accountId}}] 

Like Akshith Rekulapelli likes this
Akshith Rekulapelli August 28, 2023

Hi @David Blank 

This rule is working fine. but if one issue has two blocked issues let's say Issue-A has two blocked issues Issue-B and Issue-C. if Issue-B is done comment getting added but when Issue-C is done comment not getting added again.


David Blank
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.
August 28, 2023

@Akshith Rekulapelli ,

 

Is it possible you have this box set to true (Checked) on the Branch Rule?
Screenshot 2023-08-28 at 9.29.13 AM.png

Akshith Rekulapelli August 28, 2023

I tried checking this but still not working and I got this in the audit log.no action performed.JPG

David Blank
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.
August 28, 2023

@Akshith Rekulapelli apologies my last comment was confusing, you want that unchecked.

 

When it is unchecked, what are you getting in the logs for Issue C?

Akshith Rekulapelli August 28, 2023

it is working fine after uncheked. How can we add ticket number in comment? lets say SUP-11 is done, in comment we need to add SUP-11 is done

David Blank
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.
August 28, 2023

I think one better is if you use {{issue.key}} it gives you a formatted link with number and summary

David Blank
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.
August 28, 2023

Here's a link to a bunch more smart values you could use: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/

David Blank
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.
August 28, 2023

@Akshith Rekulapelli If this answers your question, would you mark my answer as accepted please? This will keep open questions at the top :)

Like Akshith Rekulapelli likes this
Akshith Rekulapelli August 28, 2023

Thanks for your help. 

Can you help me on this How to write an automation rule status of original... (atlassian.com)?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events