远程JIRA问题创建

远程JIRA问题创建,jira,Jira,我需要将JIRA问题从我的C#实用程序链接到彼此 我不能使用REST API,因为我的JIRA版本是4.4,我无法升级。这很棘手,因为您必须使用的SOAP方法中没有addLink()方法。我使用shell脚本直接调用URL,但您需要知道JIRA问题ID,而不仅仅是问题密钥。我认为这对JIRA 4.4有效,但对5.x无效 ~z~马特 p、 这个编辑器中的代码格式化程序太糟糕了 # # Add links to JIRA issues # # Matt Doar # CustomWare # #

我需要将JIRA问题从我的C#实用程序链接到彼此


我不能使用REST API,因为我的JIRA版本是4.4,我无法升级。

这很棘手,因为您必须使用的SOAP方法中没有addLink()方法。我使用shell脚本直接调用URL,但您需要知道JIRA问题ID,而不仅仅是问题密钥。我认为这对JIRA 4.4有效,但对5.x无效

~z~马特

p、 这个编辑器中的代码格式化程序太糟糕了

#
# Add links to JIRA issues
#
# Matt Doar
# CustomWare
# 
# usage: create_links.sh issue_id issue_key
# where the issue_id is the unique id for a JIRA issue, not it's issue key.
# You can see the issue id in the XML view of an issue.
# and issue_key is the other issue to be linked to.

USERNAME=admin
PASSWORD=secret
SERVER_URL="http://localhost:8080"

DASHBOARD_PAGE_URL=$SERVER_URL/secure/Dashboard.jspa
COOKIE_FILE_LOCATION=jiracoookie

# Get the authentication cookie
curl -u $USERNAME:$PASSWORD --cookie-jar $COOKIE_FILE_LOCATION -sS --output /dev/null $DASHBOARD_PAGE_URL

issueid=$1
issuekey=$2
#echo "Linking issue: $issueid and $issuekey"
curl --cookie $COOKIE_FILE_LOCATION --header "X-Atlassian-Token: no-check" -sS --output /dev/null -d "id=$issueid" -d "linkDesc=relates to" -d "linkKey=$issuekey" "$SERVER_URL/secure/LinkExistingIssue.jspa"

rm -f $COOKIE_FILE_LOCATION

到目前为止,您研究或尝试了什么?我尝试使用SOAP。我正在使用WebRequest(.NET),在标题中使用分隔符
=
时出错。改为使用