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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Copy comment author into custom userpicker field - Automation for Jira Edited


I am looking for help using Automation for JIRA to copy the author from the last ticket comment into a custom (user Picker) field, when a ticket is commented on.
As shown below in the screenshot. (In this instance, I manually edited the field)

The reason is, I would like to be able to setup a JQL filter, to filter the last comment author against the tickets assignee. 


I have setup the custom field 'Last Commented User' customFieldId=10603

and the Automation for JIRA rule looks like this.


The rule failed error messages look like this.

Can anyone provide any advice?

Thanks ...

F.Y.I, we are running the below (server) versions ...

JIRA Service Desk 3.16.0
Jira Software 7.13.0
Jira Core 7.13.0
Automation for Jira 7.2.3

1 answer

Hi @Jason Thompson 

Have you already solved this question?  If not, I wondered about two things:

  • Have you confirmed the custom field ID you are using matches that field name?  Your admin can check that, or you can use this how-to when you need the smart value name for a field:
  • Next, in your JSON to edit the custome field, it appears that you are trying to set a display name to an account ID.  That does not appear to be what you described wanting to do: set the custom user field to the last commentor.

Best regards,


Hello Bill,

Thank you very much for the reply and advice.
No I have not managed to get this working yet ...

I am fairly sure I have the correct field ID, see image below.

2021-03-22 14_33_14-Configure Custom Field_ Last Commented User - Jira.png
Regarding editing the JSON, well I guess this is where I really need the help.
The JSON I was using i cobbled together from various forum posts with the similar problem, as well the Atlassian Smart Value guides like the one you linked.

I have edited the JSON as below...

2021-03-22 14_33_55-Project automation - Jira.png

However I still get the same error message ...

2021-03-22 14_43_20-Project automation - Jira error message.png

You said in your post "set the custom user field to the last commentor".
I suppose that is where I get stuck. How do I do that?

Thanks in advance.

Hi Jason,

You appear to be setting a user field with just the display name.  Have you tried to set the last commentor's user to the custom field?  And, check that comments is plural for the smart value.

"fields": {
"customfield_10603": "{{}}"

Suggest an answer

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

Announcing the Jira automation template library!

Hi all,  After many months of work, I am delighted to announce the launch of the Jira Automation Template Library!  The Template Library is a new website dedicated to all things Jira au...

978 views 17 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