且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用其余api(java)在jira中创建问题?

更新时间:2022-02-06 21:14:41

您要将JIRA集成到Eclipse中吗?

请参阅: https://confluence.atlassian. com/display/IDEPLUGIN/Workingwithwith + JIRA + Issues + in + Eclipse

可能您需要使用jersey-client工件的REST客户端,我认为这是最简单的方法.

Probably you'll need a REST client using the jersey-client artifact, I think this is the easiest way.

首先,查看REST API文档: https://docs.atlassian.com/jira/REST/最新/

Firstly, check out the REST API documentation: https://docs.atlassian.com/jira/REST/latest/

使用POST方法,您可以将表示想要发出问题的JSON对象推送到JIRA服务器.您只需要完全知道可以填写哪些字段即可.如果发送的字段不在创建问题"屏幕上,或者是必填字段,但未指定,则将收到错误消息.

With the POST method you can push a JSON object depiciting a wannabe issue to the JIRA server. You just have to exactly know what fields you can and should fill in. If you send fields that are not on the create issue screen, or is required but you haven't specified them, you'll get an error.

您可以在此处找到示例: http://pastebin.com/JeucUZNG

You can find an example here: http://pastebin.com/JeucUZNG