It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to copy the last comment in Automation in Jira plugin

Hi, 

I have the following Automation for Jira plugin.


jira.png

 

We have two projects, called MKT and RND. There are tasks created in MKT and duplicated in RND. This is done also in another script using Automation in Jira. In the script above, if the issue in RND is marked as closed, then the linked issue in MKT is transitioned to a certain status. This works like a chart using the above script. I want to achieve now the following:

When the issue is done in RND, there is mostly a comment that one of our developers puts in the RND ticket. Using above script, how can I copy the last comment in RND ticket to the MKT ticket that is going to be transitioned?

1 answer

1 accepted

2 votes
Answer accepted
Scott Harwood Community Leader Jan 15, 2018

Hi Aykut,

You can use the add comment action, and use this smart value:

{{triggerIssue.comment.last.body}}

Let me know if that works for you

Scott.

That works!!! 

Thank you.

Thanks for this Scott.

Sccott-san,

If you know about below please tell me.

If I want to add the user name commented into the field, do you know what smart value should I use?

I tried "{{triggerIssue.comment.last.author}}" but the user name commented was not added (I confirmed like "52c7d57f215eg4873c4472e2.")

Thank you.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

The add-in you’ve been waiting for: Jira Cloud for Excel 🙌

Introducing Jira Cloud for Excel Here at the product integrations team at Atlassian, we are thrilled to announce the new Jira Cloud for Excel add-in! This add-in lets you export Jira data directly ...

971 views 10 25
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you