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.


2 answers

Hi @Liam_Maeder 


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




Hi @Sebastian_Krzewiński 

I am trying to use JIRA Automation.




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

More info you can find here:

Below example how you can use it:





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

issuefunction in 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 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