I want to get all the issue fields of a jira project. I can see there is an api /rest/api/3/field which will return all fields including system and custom fields but I want only those fields which are present in a project's epic, story,task and subtask.
Is there any way to achieve this?
Hi @Ritesh Shakya ,
You can add &fields= to the issue endpoint, like:
&fields=id,key,summary,customfield_12345
To get only those fields that you need.
With &expand=names, you will get the custom field names which you can include in your request.
See also here: https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/#searching-for-issues-examples
I think I am not able to tell you what I want.
I want to get all issue fields which are used in a particular Jira project.
Sorry for my bad english...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The term 'all fields in a Jira project' is a bit diffuse. Since each issuetype can have it's own set of fields. So you need to determine which fields you want to retrieve for each issuetype. If you don't specify a field, like mentioned before, you will get all fields.
But you can ignore all empty fields during the processing of the fields.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Previously we were able to get all fields for a particular project (categorized by issueTypes) through this API :
/rest/api/2/issue/createmeta?projectKeys=SC&expand=projects.issuetypes.fields
We need something similar (this seems to be deprecated) and this particular API didn't return me the "Assignee" field despite the issue having an assignee field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.