What is the best strategy to extract information from a JIRA issue?

佐手、 提交于 2019-12-12 05:48:03

问题


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:

    1. issue key: HHH-1050
    1. project issue tracker URL: https://hibernate.onjira.com/browse/HHH

(ok, the first two are easy)

    1. issue title: "HQL Unions"
    1. project title: "Hibernate ORM"

I'm using python


回答1:


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.



来源:https://stackoverflow.com/questions/11596405/what-is-the-best-strategy-to-extract-information-from-a-jira-issue

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!