Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,555,443
Community Members
 
Community Events
184
Community Groups

Automation: how to copy the last comment of an issue to a custom field in JIRA?

As the title suggests, I'm struggling to create the proper JSON script and I'm not allowed to use plugins

2 answers

1 accepted

4 votes
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.
Aug 04, 2021

Hi @Giorgio Crosali 

You could use the built-in automation for Jira rules for this, such as:

  • trigger: issue commented
  • action: edit issue for your custom field, setting it to the last comment's body, or other contents.

Please look here for information about automation to get you started:

 

Best regards,
Bill

Alex
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.
Aug 04, 2021

Hey @Giorgio Crosali 

Following @Bill Sheboy answer, I can share an example:

automation-example.png

 

Cheers,

Alex

Like # people like this

thanks to you both @Alex and @Bill Sheboy - I've managed to get the expected result

Like Bill Sheboy likes this

Hi @Alex 

After much digging and diving, your solution to this automation works perfectly for me, however how do I exclude Internal comments from being populated in my custom field "last comment" 

 

This is as far as I have gotten:

Capture.PNG

I got it to work!

Capture2.PNG

Like # people like this

Guys, i love you, thx works prefectly ;)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events