Forums

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

Automation Help - Comment on JSM ticket when linked Jira Work Item is Transitioned

Amanda Barber
Community Champion
April 2, 2025

Hello, I've been noodling on this throughout the day and can't quite get it to work.

Goal: When a linked Jira work item is transitioned (any transition), comment on any linked JSM tickets. This is what I have so far, but the commenting isn't working correctly. Before I had the branch in place, the comments were being added to the Jira work item, not the JSM ticket. Now, comments are being added but seemingly from unrelated Jira work items. 🤔

image.png

4 answers

2 accepted

1 vote
Answer accepted
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.
April 3, 2025

Hi @Amanda Barber 

Are these work items in different projects?  If so...

There are two changes needed to your rule to update the linked work item in the other project:

  • In the rule details at the top, change the rule scope to multiple-project to include the impacted projects.  If the rule is more global in nature, use a global scope.  Your Jira Site Admin will need to make that scope change using the global automation features.
  • Your rule uses a JQL branch to all of the work items in the HELP project.  Instead you could use the branch on linked work items for the specific type needed, or continue with the JQL branch and specify the exact work item using the linkedIssues() function.

Kind regards,
Bill

1 vote
Answer accepted
Marc - Devoteam
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.
April 3, 2025

Hi @Amanda Barber 

There is no JQL to specify linked issues in another project.

To make this work you need to use the same (or specific) issue link type for issues linked from the Jira work item to the tickets in JSM.

Screenshot 2025-04-03 at 10.40.32.png

Also make sure the rule is multi project.

 

0 votes
Amanda Barber
Community Champion
April 23, 2025

Just wanted to come back to this to post what the solution ended up being! 

Screenshot 2025-04-23 at 8.08.41 PM.png

Thank you so much to everyone who chimed in. I really appreciate it!

0 votes
Raphael Lopes
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.
April 2, 2025

Hello.
Create a variable before the branch to store the comment made on the linked item.

 

Comment.png

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events