C# 不同项目中Jira问题之间的联系

C# 不同项目中Jira问题之间的联系,c#,api,soap,jira,C#,Api,Soap,Jira,JIRASOAPAPI是否允许我将不同项目中的两个问题联系起来?我在网上查了一下,没有找到一个方法。我见过的最接近的东西是CreateSissueWithParent方法,它创建子问题我希望两个问题被链接,而不是子问题,它要求问题在同一个项目中,也不是我想要的 有人知道这样做的方法吗?通过SOAP API。我已使用,通过函数完成此操作: from com.atlassian.jira import ComponentManager # get issue objects authenticati

JIRASOAPAPI是否允许我将不同项目中的两个问题联系起来?我在网上查了一下,没有找到一个方法。我见过的最接近的东西是CreateSissueWithParent方法,它创建子问题我希望两个问题被链接,而不是子问题,它要求问题在同一个项目中,也不是我想要的

有人知道这样做的方法吗?

通过SOAP API。我已使用,通过函数完成此操作:

from com.atlassian.jira import ComponentManager
# get issue objects
authenticationContext = ComponentManager.getInstance().getJiraAuthenticationContext()
issueLinkManager = ComponentManager.getInstance().getIssueLinkManager()
# Link parent issue to subtask
issueLinkManager.createIssueLink(issue.getId(),otherIssue.getId(),10003,1,authenticationContext.getUser())

在SOAP中没有简单的方法,但我使用RESTful方法和Jira4.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

我最终使用REST实现了这一点,但我只能创建重复类型的问题链接。我想创建与链接相关的内容,但将我的类型设置为与链接相关和与链接相关的各种内容都不起作用。有人知道哪些链接类型是有效的吗?事实证明,相关链接类型就是我要找的链接类型。