Skip to main content

How do I find the Custom Field ID in Jira Cloud?

So you need to find the Custom Field ID in Jira Cloud. Perhaps you need the ID for a custom field to work on soem code, an API call or a script. How do you find it?

You can find the ID in the URL when managing custom fields

Jira - Settings - Issues - Fields - Custom Fields

https://***.atlassian.net/secure/admin/ViewCustomFields.jspa

Select "Edit" on the desired custom field

.../admin/EditCustomField!default.jspa?id=12802

There you go! It is that number at the end of the URL

Alternately, you can use ScriptRunner

Jira - Setttings - Add-ons - Script Runner - Script Console

and run the following

def issueKey = '***-####'

def result = get('/rest/api/2/issue/' + issueKey)
        .header('Content-Type', 'application/json')
        .asObject(Map)
if (result.status == 200){
    return result.body.fields
} else {
    return "Failed to find issue: Status: ${result.status} ${result.body}"
}

You get output you need to pick through, I suggest picking an issue to place in "IssueKey" with a value in the field you are looking for that is something you can search (Control + F in your web browser)
  "customfield_12802": {
    "self": "https://***.atlassian.net/rest/api/2/customFieldOption/16728",
    "value": "2Q 2018",
    "id": "16728"
  },

Comments

Popular posts from this blog

The dreaded "Clone" in Jira

Jira Cloud Scrum Teams Case: We clone template issues, as our work is repetitive, and get “clone” in the summary and it makes it hard to read. Built-In Jira allows you to remove "Clone" from the story you are cloning, but if you are also copying the sub-tasks there is not the option to remove it. There are ways to turn this off in Jira Server, but I could not find it in Jira cloud. Solution: Jira - Settings - Add-Ons - ScriptRunner - Escalation Service The Escalation Service called: Remove Clone In Summary As this user: (myself) Checked - enabled On this schedule: Every Hour For first 50 results returned by this query:  Project in (pipe) and Summary ~ "CLONE" Will run this code:  // check if issue.fields.summary looks like "CLONE -" def updatedSummary ="" if (issue.fields.summary.startsWith("CLONE -")) {     //if so, modify issue.fields.summary to not suck.     updatedSummary = issue.fields.summar...

What is Agile and How Can I Use it Well?

I gave a talk at BSidesLV 2018 In the "Proving Ground" track for new speakers "What is Agile and How Can I Use it Well?" Are you a person who works with Agile developers? Are they driving you nuts? This presentation will explain the core tenets of Agile and how they apply to you, the security wonk. What you may not realize is that at its core Agile is about delivering a product, fast. Agile teams are focused on delivering a minimal viable product, getting feedback, and improving both the product and the process through iterative and continuous improvement. With a keen understanding of Agile forged in the trenches of large deployments, this presentation shows you how to effectively scale your team in order to have security be an integrated part of the Agile iterations. Slides: https://docs.google.com/presentation/d/1sCM5si8UxtOusDlBeecXudstDf9idDFQWadhLtMHPpg/edit#slide=id.p Be sure to read the speaker's notes! Video: https:// youtu...