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
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.21