Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

What is {fieldKey} ?

Jeff Porter February 28, 2018

For a URL like this POST /rest/api/2/field/{fieldKey}/option

https://developer.atlassian.com/cloud/jira/platform/rest/?_ga=2.152246457.1497519392.1519747431-1277381988.1516203713#api-api-2-field-post

 

What is {fieldKey} is meant to be!?!?! 

 

The documentation states... 

The fields can be referenced in the REST API by a field key with the format: $(app-key)__$(field-key).

 

So field-key is made up of field-key ?!?

2 answers

1 vote
Mister Kat November 19, 2018

Hello, I have the same difficulties: I know my field-key, but I don't know my app-key.

Where do I get it?
If it's defined in `atlassian-connect.json` - then it's not working for me.

In `atlassian-connect.json` I have {"key": "webapp"} and my custom field is called `customfield_10041`.

When I make a call to `"https://my-proj.atlassian.net/rest/api/3/field/webapp_customfield_10041/option"` I receive an error: `"fieldKey": "Field key 'webapp_customfield_10041' is not valid"`

 

 

Deleted user July 20, 2022

Hi @Mister Kat ,

Instead of using "webapp_customfield_10041" in your URL replace it with only "webapp". It is your "field key" value.

Hope this will help!!

Deleted user July 20, 2022

Hi @Mister Kat For your app's key. Follow this---

Your jira site>>Apps>>manage your apps>>User installed apps(filter)>>App key.

Like Heinrych Gomes likes this
0 votes
Jeff Porter February 28, 2018

To identify the custom field ID:

Icon

  1. go to Administration/Custom Fields
  2. click on the "Configure" link for the custom field you're interested in
  3. in the URL of the Configure Custom Field page, note the number after "customFieldId=" and append it to "customfield_" to build the custom field ID

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events