You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Couldn't add link to existing issue because got an error: unable to add linked issue: APIGWALEX-2088 to parent issue: BTPCOREAPIGW-2906 for reason: No issue link type with name 'parent-child' found.:
The code was:
link := jira.IssueLink{ Type: jira.IssueLinkType{Name: "parent-child", Inward: "child-of", Outward: "parent-of"}, InwardIssue: &jira.Issue{ Key: parentIssue.Key, // Key of the parent issue }, OutwardIssue: &jira.Issue{ Key: linkedIssue.Key, // Key of the created linked issue }, } err = jiraClient.AddLink(&link)
**Note: This code used to succeeds while ago.
In comment you advise to use //Typical issue link types are "Related to", "Duplicate", "Is blocked by", etc.
But, when using: Type: jira.IssueLinkType{Name: "Related to", Inward: "child-of", Outward: "parent-of"}
still got the same error: No issue link type with name 'Related to' found.
What did you expect to happen?
add link to the issue.
How can we reproduce it (as minimally and precisely as possible)?
link := jira.IssueLink{ Type: jira.IssueLinkType{Name: "parent-child", Inward: "child-of", Outward: "parent-of"}, InwardIssue: &jira.Issue{ Key: parentIssue.Key, // Key of the parent issue }, OutwardIssue: &jira.Issue{ Key: linkedIssue.Key, // Key of the created linked issue }, } err = jiraClient.AddLink(&link)
Anything else we need to know?
Your Environment
Include as many relevant details about the environment you experienced the problem in
go-jira version (git tag or sha): v1.16.0
Go version (go version): 1.21
Jira type (cloud or on-premise):
Jira version / Api version:
The text was updated successfully, but these errors were encountered:
saarzur123
changed the title
IssueLinkType Name not supported
IssueLinkType Name not found
Feb 25, 2024
What happened?
Couldn't add link to existing issue because got an error: unable to add linked issue: APIGWALEX-2088 to parent issue: BTPCOREAPIGW-2906 for reason: No issue link type with name 'parent-child' found.:
The code was:
link := jira.IssueLink{ Type: jira.IssueLinkType{Name: "parent-child", Inward: "child-of", Outward: "parent-of"}, InwardIssue: &jira.Issue{ Key: parentIssue.Key, // Key of the parent issue }, OutwardIssue: &jira.Issue{ Key: linkedIssue.Key, // Key of the created linked issue }, } err = jiraClient.AddLink(&link)
**Note: This code used to succeeds while ago.
In comment you advise to use
//Typical issue link types are "Related to", "Duplicate", "Is blocked by", etc.
But, when using:
Type: jira.IssueLinkType{Name: "Related to", Inward: "child-of", Outward: "parent-of"}
still got the same error:
No issue link type with name 'Related to' found.
What did you expect to happen?
add link to the issue.
How can we reproduce it (as minimally and precisely as possible)?
link := jira.IssueLink{ Type: jira.IssueLinkType{Name: "parent-child", Inward: "child-of", Outward: "parent-of"}, InwardIssue: &jira.Issue{ Key: parentIssue.Key, // Key of the parent issue }, OutwardIssue: &jira.Issue{ Key: linkedIssue.Key, // Key of the created linked issue }, } err = jiraClient.AddLink(&link)
Anything else we need to know?
Your Environment
Include as many relevant details about the environment you experienced the problem in
go version
): 1.21The text was updated successfully, but these errors were encountered: