The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

accessing form data (proforma) with the official jira python module

Oli
April 18, 2023

hi, i'd like to access the proforma data in an issue with the official jira python module (https://pypi.org/project/jira/)

Is there any way to get those (easily)? I tried it with jira.issue("My-Issue-ID").raw but was not able to find anything related to the form data.

or is the rest api somehow public accessible? then i could test in my browser if i can access those fields. i created a new group and assigned the export form data permission, so in theory, it should work

the forms version is: 8.6.4-DC, jira version 9.4.4

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Oli
April 18, 2023

wierd, an hour ago i was not able to access the documentation, now i can view it at https://confluence.atlassian.com/proformadev/v1-2-0-api-documentation-1167691702.html

very strange, maybe adblock blocked it or so.. guess with that i can work on. 

 

edit: i played now a bit around (because i had no form id) and found this: /rest/proforma/api/2/issues/Ticket-ID/forms which gives me all i need. Wondering if this is documented or so. Maybe i am blind :)
Now wondering if i can access those fields with the jira object, which is already authenticated with the jira server. Dont want to authenticate again with a http client :X

edit 2: i was also able to access those fields with /rest/proforma/1/issue/Ticket-ID/form/1/answers, but seems like not possible to access them with the jira python object?

edit 3: created a ticket for the jira object: https://github.com/pycontribs/jira/issues/1647