Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

options for custom field using API

Hi I am trying to get the option available for the custom filed using this api

l = "https://your-domain.atlassian.com/rest/api/3/customField/customfield_10135/option

it returns the 404 error. I am following this document https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-options/#api-rest-api-3-customfield-fieldid-option-put 

I have the admin access. Can someone please help me in writing a api to retrieve the custom field options 

 

1 answer

0 votes
Fazila Ashraf Community Leader Sep 08, 2020

@Yellalingh Margonda  , use only the id of the field.. Like below:

 

"https://your-domain.atlassian.com/rest/api/3/customField/10135/option

Thanks for the reply 

I have tries it, now I am getting 400 error. FYI i am using 

https://yourdoami.com/rest/api/3/field

to get the field id 

Fazila Ashraf Community Leader Sep 08, 2020

@Yellalingh Margonda  , so i take that the first suggestion worked and now you are looking at another call.

 

Error 400 means bad request.

are you making GET request?

Hi @Fazila Ashraf 

 

Using this

https://your-domain.atlassian.com/rest/api/3/customField/10135/option 

request i am getting 400 error

@Fazila Ashraf  

 

Can you please help me

Fazila Ashraf Community Leader Sep 09, 2020
https://your-domain.atlassian.com/rest/api/3/customField/10135/option

 returns 400 if the request is invalid

Can you perform the curl like below and check?

curl --request GET \
  --url 'https://your-domain.atlassian.com/rest/api/3/customField/10135/option' \
  --user 'email@example.com:' \
  --header 'Accept: application/json'

Hi @Fazila Ashraf 

 

I am using the same "

https://your-domain.atlassian.com/rest/api/3/customField/10135/option 

" in python, its throwing 400 error. I believe there is something wrong in the request url as I have written other api calls i.e

https://yourdomain.com/rest/api/2/search?jql=project =XXX

Works as expected. 

 

Can you please help me with the url format to get the options for the custom selection field.  

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Confluence

Introducing External Collaboration for Confluence

We’re excited to introduce external collaboration for Confluence, now available in early access. It is available to preview for Confluence Cloud Premium and Enterprise customers. (If you're not on ...

205 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you