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

Adding a custom field to JIRA Automation

Gautam September 4, 2024 edited

Hi, I am trying to add a rule via automation to trigger an email when value of sprint changes. I am able to get the email triggered.

I am trying to add in a custom field in the body of the email that gets triggered along with existing fields liks Summary, Assignee etc. I have used the below and no luck.

{{issue.customfield_10767}}

{{issue.fields.Validator}}

Validator is the custom field. Both these return value which is numeric like -

712020:b205ac28-c278-4dd8-a2fa-79086133c016

and not the actual value.

 

Can someone please help?

1 answer

1 accepted

1 vote
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 4, 2024 edited

Hello @Gautam 

What is the field type of the field?

Based on the value you have shown I suspect it is a User Picker field. If you want the user's name to be returned then you need to use:

{{issue.customfield_10767.displayName}}

By default the value given when you use a smart value for a User Picker field will be the Atlassian Account ID of the user, not their name.

Reference:

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-users/

Gautam September 4, 2024

Thank you @Trudy Claspill. It worked like a charm. Yes, it is a user picker field.

Can I also ask one other question? If I set a rule for an email notification to be triggered when a field value changes, is there a way to get previous value of field as well? Say for example, if I set a rule for an email notification to be triggered when Sprint value is changed in Sprint field, is there a way / smart field that I can use to include previous value of the sprint field as well in the email body?

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 4, 2024

Yes, that is possible.

Look at the {{fieldChange}} smart value described on this page.

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/

Like Gautam likes this
Gautam September 4, 2024

Champion @Trudy Claspill . Thank you so much!

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events