Hi,
I am using JIRA 5 demo version and accessing that through REST api.I want to retrieve custom field values by REST api's but in api document http://docs.atlassian.com/jira/REST/latest/#id165434
they mentioned for get particular only one customfield value that is
http://10.90.3.166:8080/jira/rest/api/latest/customFieldOption/10001
Response was contain one value but i want to retrieve all values in particular custom field is there any api for that or any other way to getting this?
For example if we have a select list cusotm field we want to retrieve all values which are in that select box.
Thanks,
Veerprabu.V
Community moderators have prevented the ability to post new answers.
Use this URL for retrieving all the available fields in the particular project
Then parse the json to get the custom fields.
Added the sample parser also...
Thanks
Senthilkumar (Customparser.txt)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For posterity, yes it does exist, but Senthil's JIRA is located at the server:port/jira/, whereas most default installs will be at server:port/, so use his URL and remove jira/ from the beginning of the path after the port. Also you might have to substitute your own project and issue IDs.
Fastest way to get a project id: https://confluence.atlassian.com/jirakb/how-to-get-project-id-from-the-jira-user-interface-827341414.html
(same procedure for TaskId, but you have to look at the section where tasks are defined)
Actually, even easier than using numbers, https://developer.atlassian.com/server/jira/platform/jira-rest-api-example-discovering-meta-data-for-creating-issues-6291669/ Here you can see that they used
projectKeys and issuetypeNames:
curl -D- \ -u fred:fred \ -X GET \ -H "Content-Type: application/json" \ http://kelpie9:8081/rest/api/2/issue/createmeta?projectKeys=QA&issuetypeNames=Bug&expand=projects.issuetypes.fields
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
please check this plugin https://marketplace.atlassian.com/plugins/com.itlab.jira.plugins.extender/server/overview
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can even get by Project Key
http://yourPcName:2990/jira/rest/api/latest/issue/createmeta?projectkey=PC&issuetypeIds=10000&expand=projects.issuetypes.fields
and later on you can filter it
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use plugin https://marketplace.atlassian.com/plugins/ru.andreymarkelov.atlas.plugins.requestedfields which provides two fields that maybe filled from HTTP response.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if you dont find the api for that you can write your own REST plugin
https://developer.atlassian.com/display/DOCS/Incomplete+Plugin+Tutorial+-+Writing+REST+Services
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.