Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,463,681
Community Members
 
Community Events
176
Community Groups

REST API cannot get customfiled options

Have a customfield with any type, which is used for sprint or epic. 

1.I tried to get the info using createissue api. but those custom fields returned without allowedValues. 

 

2. I also tried to get the options through the field context. But it returns 400 for the response. 

     a. I first tried to get the context id through                `rest/api/3/field/customfield_10014/contexts`,

it returns `

{

  maxResults: 50,

  startAt: 0,

  total: 1,

  isLast: true,

  values: [

    {

      id: '10114',

      name: 'Default Configuration Scheme for Epic Link',

      description: 'Default configuration scheme generated by Jira',

      isGlobalContext: true,

      isAnyIssueType: true

    }

  ]

}

`

I suppost `10114` is the context id I used that for the context api call the context option api call. it returns `400` error.

I also tried the jql api, but turns out to be it always return a issue, instead of the field options. 

 

How can I get the list of options for the customfield? 

 

1 answer

For epic and sprint, Jira has agile server API to get the options. 

https://docs.atlassian.com/jira-software/REST/7.3.1/?_ga=2.209676690.1244573884.1647156425-1322153895.1616102704#agile/1.0/board/{boardId}/epic-getEpics

 

Have no idea why those 2 fields are included in the custom field. 

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events