How to access IDs for Custom Fields in Product Discovery

Rob Parrish February 25, 2024

Hello,

I'm trying to setup an automation that needs to leverage a custom field, using the syntax {{destinationIssue.customField}}. You can see an example below of where I'd like to use it.

My question, how do I get the custom field ID for a field I created in Product Discovery? I know how to do it in normal JIRA, but unsure how to here. 

Ideally, Atlassian would make getting custom IDs for fields would be A LOT EASIER, because it's always far too cumbersome for the amount of places it's needed in more advanced use cases. I suspect this would drive adoption of these more advanced features. But, for now, I'll just take any way to make this work!

Thanks in advance!

 

Screenshot 2024-02-25 at 7.38.30 PM.png

3 answers

1 accepted

Suggest an answer

Log in or Sign up to answer
1 vote
Answer accepted
Andy Lutz February 26, 2024

The other workaround I use for this is via the Jira Cloud for Sheets add-on for Google Sheets. Once you have it set up and launch it within a sheet, within the side panel for the Add-On there's an option to view all Jira Fields:

Screenshot 2024-02-26 at 11.45.58 AM.png

You can then search for specific fields across all projects, or within a specific project:

Screenshot 2024-02-26 at 11.48.50 AM.png

Rob Parrish February 26, 2024

This one seems particularly simple. Thank you! Let me try it out

3 votes
Nick H
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 26, 2024

This doc should help:

How to find any custom field's IDs

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.
February 26, 2024

Hi @Nick H 

Here is the Jira Cloud version of that article...which was removed recently for several weeks, and now is back.

https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

Kind regards,
Bill

Like Nick H likes this
2 votes
Mart Postma February 25, 2024

Hi @Rob Parrish 

If you follow these steps, you'll be able to find the ID of your custom field you are looking for:

(1) Call the Atlassian API in your browser: <your_domain>.atlassian.net/rest/api/3/issue/<ISSUE_KEY>?expand=names

Enter any issue key from your JPD project such that we can retrieve all fields in an issue in the project.

(2) It will return a massive JSON object. Copy this to any JSON editor of your preference, for example https://jsoneditoronline.org/ and format it accordingly/

(3) Query (CTRL-F) with the name of the custom field that you want to find. For example, the result that you should use in your smart value automation step should look like this: {{customfield_10131}}

It's a bit of a work-around, but it does the job. Good luck! 

Ivan Ferreira February 26, 2024

Hello @Rob Parrish .

Check this solution. I just tested and it solves your problem.

Cheers!

Troy Moore February 26, 2024

This is really cool! @Mart Postma  

Like Mart Postma likes this
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.
February 26, 2024

Hi @Rob Parrish 

Yes, and...to this suggestion:

This approach will also show the structure of the smart values within the issue.  This can help diagnose problems where values appear empty, but in reality the wrong smart value path was selected in the rule.

Kind regards,
Bill

Like Troy Moore likes this
TAGS
AUG Leaders

Atlassian Community Events