Add a comment to Project Issue type when Linked Issues status gets changes

Mirja Baig December 26, 2024

Hi Team,

 

I have a project, A, that contains 50 issues of the type "Test." Some issues in this project are linked to issues of the "Test" type in other projects. When the status of these linked issues in other projects changes, I want to update the comments on the "Test" issues in project A. I would like to use a Jira Automation rule for this, and please note that I do not want to use the Legacy Automation rule.


 

Please suggest me any ideas....

 

BR,
SATTAR

2 answers

2 votes
Walter Buggenhout
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 26, 2024

Hi @Mirja Baig,

This sample rule in the automation playground has almost all the pieces you need. You should just use a different trigger (issue transitioned).

Hope this helps! 

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.
December 26, 2024

Hi @Mirja Baig 

Adding to Walter's suggestions...

You describe the issues are in different projects.  And so the rule scope must be multiple-project or global to access the issues.  Please discuss this with your Jira Site Admin as they will need to change the rule scope using the global automation access.

Kind regards,
Bill

Like Walter Buggenhout likes this
Mirja Baig December 26, 2024

Hi Walter/Murat/Sheboy,

Apologies for the inconvenience!

Requirement:

I need an automation rule where, when Project A has 50 test issues and other project issues are linked to them, the comment on a test issue in Project A is updated whenever the status of a linked issue from another project changes. For example, if an issue in Project B (task-123) is linked to a test issue in Project A (test-12), and the status of task-123 changes from "To Do" to "In Progress," the comment on test-12 should be updated to: "Task-123 status updated from To Do to In Progress with Summary."

Best regards,
Sattar

Walter Buggenhout
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 26, 2024

Hi @Mirja Baig,

I am quite sure that you want to add a comment to the linked issue in Project A. In short:

Trigger: issue transitioned from To Do -> In Progress

Condition: issue fields / Project not in "Project A"

Branch: For Linked Issues

Action: Add comment with text {{triggerIssue.key}} status updated from To Do to In Progress with {{triggerIssue.summary}}

It is very much the same rule as in @Murat Seven's screenshot, but with an Add comment action with the above text. @Bill Sheboy's comment about the rule's scope is also an important thing to keep in mind, as your rule should run across multiple projects. 

Like Murat Seven likes this
1 vote
Murat Seven
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.
December 26, 2024

Hi @Mirja Baig and thanks for your question.

I didn't quite understand why you want to update the comment in the linked project. However, you can achieve this with an automation like the one below.

 

Screenshot 2024-12-26 at 4.48.22 PM.png

If my answer has addressed your question satisfactorily, please consider clicking on the Accept Answer button.

Best,

Murat Seven

Mirja Baig December 26, 2024

Hi Walter/Murat,

Apologies for the inconvenience!

Requirement:

I need an automation rule where, when Project A has 50 test issues and other project issues are linked to them, the comment on a test issue in Project A is need to be updated whenever the status of a linked issue from another project changes. For example, if an issue in Project B (task-123) is linked to a test issue in Project A (test-12), and the status of task-123 changes from "To Do" to "In Progress," the comment on test-12 should be updated to: "Task-123 status updated from To Do to In Progress with Summary."

Please suggest an Automation rule for this.....

Best regards,
Sattar

Murat Seven
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.
December 26, 2024

@Mirja Baig ,

 

You can also write the following smart value in the comment action:

The status of {{triggerIssue.key}} has been updated from {{#changelog.status}}*{{fromString}}*{{/}} to {{#changelog.status}}*{{toString}}*{{/}}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events