Forums

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

How to fetch fields via rest api using python

Shubham Gupta June 28, 2015

hey , a beginner here in using rest apis ... I have a simple problem statement, I want to fetch all the fields name in a particular project , using python.

using :

allfields=jira.fields() , 

fetches all the fields of all the projects.

 

and  using :

 /rest/api/2/issue/createmeta?projectKeys=TEST&expand=projects.issuetypes.fields

 this fetches only the visible fields , but still I'm not getting how to convert this into python code.

Please help.

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 28, 2015

Well, that url will just throw some JSON back at you, so you can use standard python functions can parse it.

I'm told the python at https://confluence.atlassian.com/display/DOCSPRINT/The+Simplest+Possible+JIRA+REST+Examples gives you a good start.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events