I have a branch on related issues in an automation rule and I want to find out the Link Type of the related issue but I can't figure out how to get it (the inward link text and the outward link text).
Any ideas? I tried {{LinkType}}, but that didn't return anything.
This is the branch:
Hi @Cash Coyne
I recommend using the steps from the how-to article for finding smart values, looking at an example issue, and that will indicate the correct smart value path you need.
The steps are:
https://<yourinstanceurl>/rest/api/2/issue/<issuekey>?expand=names
I provided the steps as it appears the how-to article, linked below, has been removed from the documentation pages: https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/
Kind regards,
Bill
Hi Bill, I've found some info, but not sure how to use it in automation. Based on this screenshot, it looks like issuelinks is a collection and I'm interested in getting the Nth object in the collection. In there, it looks like I want to get the type.inward (and then name?) to get the type of inward link. And I can get the inwardIssue.key to get the Jira issue key.
Can you provide pointers on how to access this in automation as I'm not familiar with getting info out of properties in objects in lists? I'd think I have to loop thru the links to find the linktype I'm looking for the given issue key?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The specifics of how to do this depend on the details of your rule. You are only showing the branch, so without more context it is difficult to suggest more.
Although if inside of the branch looping over the issues, if you know each issue has one-and-only-one link, you refer to that single one in the inwardIssue list. And remember that some links are directional, and so if that is the opposite of what you want try using the outward one.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Cash Coyne
Just checking if this answered your question. If so, please mark this one as "answered" to help others find solutions faster. If not, provide any additional information to help the community provide suggestions.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I ended up doing things differently using if/else components.
However, this is something I will use in the future. Thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.