Hi,
following situation:
Tasks:
Problems:
{{#issue.issuelinks.type}}
{{#if(equals(name, "Communication"))}}
{{issue.issueLinks.inwardIssue.status.name}}
{{/}}
{{/}}
{{#issue.issuelinks.type}}
{{name}}
{{/}}
So can someone find my mistake?
BR Christof
Maybe I have to go another way and lookup for the issue via JQL:
issue IN linkedIssues("{{issue.key}}") AND issueLinkType = "has communication"
With the linkedIssues() JQL function, you may include the link type inside the function: https://support.atlassian.com/jira-software-cloud/docs/jql-functions/#linkedIssues--
And for your original question, your syntax for the smart value, list filtering was incorrect for the issuelinks smart value. When manually checking links with direction, the correct link name must be identified and the keys filtered.
For example, to filter for linked issues which block the current issue, this would return their key and status name. I added spacing to make reading it easier.
{{#issue.issuelinks}}
{{#if(and(equals(type.inward, "is blocked by"),
exists(inwardIssue.key)))}}
{{inwardIssue.key}}: {{inwardIssue.status.name}};
{{/}}
{{/}}
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks a lot. That worked and is much more complex than I thought.
What do you think is the better way? Doing it with smart values like that or a lookup issue action and using that issue status?
BR Christof
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
From a rule maintenance perspective, using the JQL will be easier for others reading your rule to understand.
From a performance perspective, the data is already loaded in the issuelinks smart value; using that approach saves a few seconds per rule execution over making another roundtrip to the database with the lookup. You appear to be at a Premium license level and so that is likely less of a concern.
Understanding both methods helps in other rule scenarios which require using one or the other technique.
In my experience, I favor maintainability over performance until performance becomes a problem, so I would go with the JQL and lookup one.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you try using below syntax to get linked issue key and its status name
{{#issue.issuelinks}} {{outwardIssue.key}} {{outwardIssue.status.name}} {{/}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This gets nothing. With inward... it gets the other linked issue which is wrong.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We can get the value of issue key based on the type of 'issue links'.
When we link "Issue B" from "Issue A" using 'blocks' (Issue A > More > Link > Issue B),
We can fetch the values of linked issue keys (both "Inward" and "Outward" using below smart values.
Inward Issue is {{issue.issuelinks.inwardIssue}}
Outward Issue is {{issue.issuelinks.outwardIssue}}
{{issue.issuelinks.inwardIssue.key.status}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is true but not related to the problem.
Issue A have one or more linked issues. Only ONE of these is relevant (Communication and inward linktype "is communication for") and status status of only this one needs to be determined.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.
Learn more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.