how to autifill a custom field on transition

Jaina Chavda
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 8, 2025

HI I have a custom field called "QA Tester" which is a drop down option of all the users in the system.

When I transition a ticket from "ready for testing" to "In testing" i want this fields to autfill with the User name of the person who initiated the transition of status.

 

How do I do this?

 

Kind regards,

Jaina

1 answer

0 votes
Mike Maurer
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.
January 8, 2025

Hi @Jaina Chavda ,

which field type is the custom field? User Picker (single user)?

If yes, you could build an automation with 'User who triggered the event'.

 

image.png

 

Otherwise you could try the smart value {{initiator.displayName}} in the JSON (More options). 

Jaina Chavda
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 8, 2025

I do not want to change assignee but rather a new custom field called QA tester ( user single select) Screenshot 2025-01-08 161613.png

and right now the "user who triggered the event" option is not showing

Screenshot 2025-01-08 161416.png

Mike Maurer
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.
January 8, 2025

OK, I guess you have to use JSON and {{initiator.displayName}} then.

Please get the ID of the custom field:

https://confluence.atlassian.com/jirakb/find-my-custom-field-id-number-in-jira-744522503.html

 

Please try it with this JSON in More options - Additional fields:

{
"fields": {
"customfield_12346": {
"id": "{{initiator.accountId}}"
}
}
}
  • Unselect QA tester in Choose fields ...
  • Enter your Custom field ID

image.png

 

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.
January 8, 2025

Hi @Jaina Chavda -- Welcome to the Atlassian Community!

Adding to the suggestion from Mike, the JSON expression is not needed.

Instead the field may be set directly by selecting it from the dropdown list entering the smart value for the user who triggered the rule: {{initiator.accountId}}

When the value appears below the field, select it to use for the edit.

Kind regards,
Bill

Like Mike Maurer likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events