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

Jira Automation used custom fields but not working

Santhosh Velmurugan October 2, 2024

Hello Team,

 

I used custom field in the automation 

{{issue.fields.customfield_ Product}}

but I got the value as empty 

 

Looking for some inputs!!!

 

 

4 answers

2 accepted

3 votes
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.
October 2, 2024

Hello @Santhosh Velmurugan 

Welcome to the Atlassian community.

When referencing a custom field in a smart value in Automation you use either the field name (i.e. Product) or the custom field ID which is customfield_ followed by a 5 digit number.

If Product is the name of your field try using {{issue.Product}}

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.
October 2, 2024

Hi @Santhosh Velmurugan -- Welcome to the Atlassian Community!

Adding to Trudy's suggestion:

Smart values are name, spacing, and case-sensitive.  When an incorrect one is used, that returns null.  To identify the correct smart value (or custom field id) for your field, please use this how-to article: https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

Kind regards,
Bill

Like 2 people like this
Santhosh Velmurugan October 2, 2024

Thanks @Trudy Claspill @Bill Sheboy 

I used the {{issue.product}}, but still I'm getting null value

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.
October 2, 2024

Hello @Santhosh Velmurugan 

What is the actual name of the field in the UI?

Can you provide a screen image showing the field within an Issue.

Note what @Bill Sheboy said:

Smart values are name, spacing, and case-sensitive.  When an incorrect one is used, that returns null.  

Santhosh Velmurugan October 2, 2024 edited

@Trudy Claspill Sure, 4 custom fields Product, Notification Type, Customer Type, Expiration Date/Time. Im trying on ProducScreenshot 2024-10-02 at 4.00.44 PM.png

Santhosh Velmurugan October 2, 2024

And here is the custom fields are configured

 

Screenshot 2024-10-02 at 4.13.07 PM.png

Santhosh Velmurugan October 2, 2024

Thanks @Trudy Claspill  @Bill Sheboy   there is some unknown space in the custom field. that's why it is not working.

Now it is working, Thankyou

Like Bill Sheboy likes this
1 vote
Answer accepted
pinky_reddy
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.
October 2, 2024 edited

Hi @Santhosh Velmurugan 

Welcome to Atlassian Community

Can you try using {{issue.customfieldnamehere}}

Example:

If your Customfield name is Product

{{issue.product}}

Santhosh Velmurugan October 2, 2024

Thanks @pinky_reddy 

I used the {{issue.product}}, but still I'm getting null value

Santhosh Velmurugan October 2, 2024

Thankyou @pinky_reddy , there is some unknown space in the custom field. that's why it is not working.

Now it is working, Thankyou

Like pinky_reddy likes this
0 votes
Santhosh Velmurugan October 2, 2024

Finally I'm using {{issue.Product}} it is solved the issue.

 

FYI.. there is a some unknown space in the custom field. that's why it is not working.

After removing the space in the project setting, now I can able to retrieve the data

 

Thanks Everyone

0 votes
Manoj Gangwar
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 2, 2024 edited

Make sure that the custom field ID you're using is correct. The ID customfield_XXXXX should exactly match the custom field’s ID in your Jira instance.

How to Find the Correct Custom Field ID:

Go to Jira Settings > Issues > Custom Fields.

Locate the custom field you want to use (in your case, “Product”).

Hover over the field name or click to edit it. The URL will contain the custom field ID, like customfield_XXXXX.

Ensure you're using the correct ID in the automation rule.

 

If it is a cascading field then use. {{issue.customfield_××××.name}}

 Else use

{{issue.customfield_××××}}

Santhosh Velmurugan October 2, 2024

Thanks @Manoj Gangwar 

I tried below commands,

but not working

{{issue.customfield_11147.Product}} 

{{issue.customfield_11147.name}}

{{issue.fields.customfield_11147}}

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
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