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

Is it possible to set automation for the first comment only?

Good day

I am trying to set up automation that updates a custom field, but only on the first comment.

Any help would be much appreciated.

Thanks

2 answers

Hi @Liam Maeder 

 

What do you use to do this? Automation for JIRA add-on perhaps?

 

Regards,

Seba

Hi @Sebastian Krzewiński 

I am trying to use JIRA Automation.

Thanks

Hi

 

Did you try {{issue.comments.size}}?

More info you can find here: https://docs.automationforjira.com/reference/smart-values.html#issue-comments

Below example how you can use it:

example.png

 

Regards,

Seba

scriptrunner provides a JQL function to get issues with a given number of comments

issuefunction in hasComments()

https://scriptrunner.adaptavist.com/latest/jira/jql-functions.html#_hascomments

With this you can set a condition in automation (in case you are using it)

also it could be possible to access the number of comments via smart values for automation.

something like {{fields.comments.size}} and use it as a condition comparing the value with 0 (not checked, just guessing)

Suggest an answer

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

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

363 views 1 3
Join discussion

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