Forums

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

How to get the field configurations using JIRA python api

Tejvir Singh June 12, 2018

I want the field configuration of a project. Like I want to know which field is required in a particular project while creating an issue and I want to get this information using Jira-python api. Is there a way to do it. 

1 answer

0 votes
Tarun Sapra
Community Champion
June 12, 2018

From the docs

https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/#getting-metadata-for-creating-issues-examples

Discovering project and issue type data

To create an issue in JIRA, you first need to specify a project and issue type. These together are referred to in JIRA as an issue context and are used to find the JIRA schemes that control what fields are available for an issue, what the default values are and what fields are mandatory.

Using the createmeta resource we can discover the project and issue types.

Tarun Sapra
Community Champion
June 12, 2018

For rest call using python you can use this

https://jira.readthedocs.io/en/master/

Tejvir Saggu
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!
June 21, 2018

Thanks a lot. Solution provided by you works. 

Tarun Sapra
Community Champion
June 26, 2018

That's great to hear @Tejvir Saggu , could you please accept the answer so that others are helped as well.

Suggest an answer

Log in or Sign up to answer