Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IssueLinkType Name not found #660

Open
saarzur123 opened this issue Feb 25, 2024 · 0 comments
Open

IssueLinkType Name not found #660

saarzur123 opened this issue Feb 25, 2024 · 0 comments

Comments

@saarzur123
Copy link

saarzur123 commented 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-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:
@saarzur123 saarzur123 changed the title IssueLinkType Name not supported IssueLinkType Name not found Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant