1

JIRA SOAP API を使用すると、異なるプロジェクトにある 2 つの課題をリンクできますか? 私はオンラインで調べましたが、これを行う方法が見つかりませんでした。私が見た中で最も近いのは createIssueWithParent メソッドです。これはサブ課題を作成し (サブ課題ではなく 2 つの課題をリンクする必要があります)、課題が同じプロジェクトにある必要があります (これも私が望んでいるものではありません)。

これを行う方法を知っている人はいますか?

4

2 に答える 2

0

SOAP で簡単な方法はありませんが、RESTful アプローチと JIRA 4.4 を使用してこれを行いました。

#
# 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
于 2012-08-08T22:14:27.770 に答える