Reputation: 5459
I'm developing FreedomSponsors - a crowdfunding platform for open source projects.
I want to improve the "Sponsor new issue" screen by pre-filling some information, based on the issue's URL.
My first "target" is JIRA. Given a URL like https://hibernate.onjira.com/browse/HHH-1050, What's the best way to extract information like:
(ok, the first two are easy)
I'm using python
Upvotes: 0
Views: 670
Reputation: 354834
I'd use the XML view, which is probably (a) more stable than the HTML rendering and (b) easier to extract information from.
At least for this issue tracker at this location you can get the XML URL
https://hibernate.onjira.com/si/jira.issueviews:issue-xml/HHH-1050/HHH-1050.xml
from the issue key which is easily obtainable from the original issue URL.
Upvotes: 2