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-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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