Forums

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

Automation: copy comments from SM to Jira Software

Peng Zhou
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 14, 2022

Hi all,

I'm trying to make this automation rule but can't seem to figure it out and wonder if it is possible what I want. What I want is:

- When an agent makes a comment in Jira Software, the comment gets copied over to SM as an internal note.

When an agent makes an internal note, it gets copied over to Jira Software.

image.png

This is my current rule, but the problem is that Jira Software has no internal note so the rule doesn't work when an agent makes a comment in Jira Software.

Can anyone help me with this? Thank you!

 

1 answer

1 accepted

2 votes
Answer accepted
Tessa Tuteleers
Community Champion
April 14, 2022

Hi @Peng Zhou , 

you will need to distinguish the different kind of comments with an if / else 

Easiest way to do that is with the projectType.

If projectType in (service_desk)  , then the comment needs to be internal, 

else the check is not necessary. 

However, I would recommend strongly to create a much narrower condition and using link types / projects to make sure not every comment gets copied to all linked issues. 

Make sure that it will only copy to and from JSM issues with a related issue condition or something. Also make sure that this rule cannot be triggered by automation itself, or you will be stuck in a loop. :) 

Hope this helps!

- Tessa

Peng Zhou
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 14, 2022

Thank you @Tessa Tuteleers

It worked! I added if/else rule for both projects, thanks a lot!

Like Tessa Tuteleers likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events