从JIRA问题中提取信息的最佳策略是什么? [英] What is the best strategy to extract information from a JIRA issue?

查看:61
本文介绍了从JIRA问题中提取信息的最佳策略是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发 FreedomSponsors -开源项目的众筹平台.

I'm developing FreedomSponsors - a crowdfunding platform for open source projects.

我想通过根据问题的URL预填写一些信息来改善赞助商新问题"屏幕.

I want to improve the "Sponsor new issue" screen by pre-filling some information, based on the issue's URL.

我的第一个目标"是JIRA. 给定类似 https://hibernate.onjira.com/browse/HHH-1050 ,提取信息的最佳方式是什么?

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. 问题密钥:HHH-1050

    1. 项目问题跟踪器网址: https://hibernate.onjira.com/browse/HHH

  • (好的,前两个很简单)

    (ok, the first two are easy)

    1. 问题标题:"HQL联盟"

    1. 项目标题:休眠ORM"

  • 我正在使用python

    I'm using python

    推荐答案

    我会使用

    I'd use the XML view, which is probably (a) more stable than the HTML rendering and (b) easier to extract information from.

    至少对于在此位置的此问题跟踪器,您可以获取XML URL

    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
    

    通过发布密钥(可从原始发布URL轻松获得).

    from the issue key which is easily obtainable from the original issue URL.

    这篇关于从JIRA问题中提取信息的最佳策略是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆