在jira插件开发中解析来自命令提示符的响应

时间:2017-03-03 09:05:57

标签: json xml webhooks jira-plugin

您好我已经为Atlassian JIRA云插件开发编写了json和xml,我的插件用于接收在JIRA云中发生的事件(创建,更新等问题)并且我很成功,它正在打印响应cmd(成功消息:200 ok)  我的问题是如何解析该响应以及如何触发项目中所有用户的邮件

Atlassian的-connect.json

{
"name": "JIRA notification test",
"description": "Atlassian Connect add-on",
"key": "plug-in1",
"baseUrl": "https://2a410c6a.ngrok.io",
"vendor": {
"name": "Stark",
"url": "https://developer.atlassian.com"
},
"authentication": {
"type": "none"
},
"apiVersion": 1,
"modules": {
"webhooks": [
{
"event": "jira:issue_created",
"url": "/issue-created"
},
{
"event": "jira:issue_updated",
"url": "/issue-updated"
}
]
},
"scopes": [
"read"
]
}

atlassian-plugin.xml
<?xml version="1.0" ?>
<atlassian-plugin key="plug-in1" name="PlugIn" plugins-version="2">
<plugin-info>
<description>Atlassian Connect add-on</description>
<version>1</version>
<vendor name="My Organization, Inc" url="https://developer.atlassian.com" />
</plugin-info>
<remote-plugin-container key="container" display-url="http://localhost:8000">
</remote-plugin-container>
</atlassian-plugin>

0 个答案:

没有答案