Forums

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

What should be the correct format of field key

Gihan Munasinghe
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 26, 2018

I have to get all the options of the particular custom field which has the field type single list single choice. So that I used bellow API call in order to get the result

https://your-domain.atlassian.net/rest/api/3/field/{fieldKey}/option

$(app-key) = jira-Test-int

$(field-key) = customfield_10032 

FieldKey = jira-Test-int__customfield_10032

https://equalizer.atlassian.net/rest/api/3/field/jira-Test-int__10032/option

When I execute this API call,  I receive an error: `"Field key 'jira-Test-int__customfield_10032' is not valid"`

Is there any other format that should be followed when creating the field key?

 

1 answer

0 votes
Angélica Luz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 27, 2018

Hi Gihan,

This endpoint that you are using is for those who are using connector to create an app.
Please, check this post where our product manager gives more details about the endpoint.

Can you give us more details about the information that you need to get? What is the desired outcome? 

Regards,
Angélica

Gihan Munasinghe
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 27, 2018

Thank @Angélica Luz for the quick response. 

As per that post you mentioned, I was able to catch up a point which is regarding the field key and being retrieved custom field options via the public REST API provided by Atlassian.

So far, The REST API doesn't allow that call for custom fields and it's only possible for issue field which has been created by the Atlassian connector descriptor by manually.

I saw that there is  ACJIRA issue with this feature request.

https://ecosystem.atlassian.net/browse/ACJIRA-1626

Suggest an answer

Log in or Sign up to answer