Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

List linked issues depending on the "Type of Link" using smart values Edited

I am implementing a Automation Rule that requires to list in a comment in the trigger issue ONLY which linked issues under a specify "Types" of linking; which the Branching rule / related issues was applied.

The part that perform the action on the Linked Issues has been implemented.

But I need to add a comment in the trigger issue about which issues were "synchronized".

Unfortunately I cannot find precise information in JIRA documentation for smart values about the use of this smart value {{issue.issuelinks}}

Here is which combinations I have tried and the results I get, but I cannot fin the ones that for a specific Types of linking for example "is caused by".

  1. {{issue.issuelinks}}
    • List all linked issues to the trigger issue (no matter the type of link)
    • Types "blocks" is listed first in the list, then is blocked by, then clones, etc.
    • Repeated linked issues are not listed (which is good)
  2. {{issue.issuelinks.Issue}}
    • generates the same as in 1.
  3. {{issue.issuelinks.outwardIssue.key}}
    • list issues which link is "blocks", "clones"
  4. {{issue.issuelinks.first.outwardIssue.key}}
    • List the first issues which tpye is "blocks"
  5. {{issue.issuelinks.last.outwardIssue.key}}
    • No exit is generated
  6. {{issue.issuelinks.inwardIssue}}
    • List linked issues which types are "is blocked by, is caused by, is...." together.
  7. {{issue.issuelinks.outwardIssue}}
    • List types "blocks" and "clones"

 

If I want to list ONLY the ones which link types is "is cause by", how to set the smart value?

I found that the "order" on which the issues are listed for example first blocks, clones, etc.

Depends on how is sorted in the configuration 

##YOUR##.atlassian.net/secure/admin/ViewLinkTypes!default.jspa (there is defined which are Outward and Inward).

As well I found that using 

{{issue.issuelinks.get(0).Issue}}
{{issue.issuelinks.get(1).Issue}}

I can get position 0, 1 from all linked issues to the trigger issue.

But not yet how to list ONLY the ones that are from a specific Types of linking.

2 answers

Hi @Israel Luna-Vazquez 

You may do this in two steps: gather the links of the type you want, and then create the list of the issues.  For example to find the linked issues of type "is caused by" from one issue and add a comment:

  • Trigger: manual (you can change this as needed)
  • Action: lookup issues on JQL with 
issue IN linkedIssues({{issue.key}}, "is caused by")
  • Action: comment on issue with something like this...
These linked issues are "is caused by": {{#lookupIssues}}{{key}}{{^last}}, {{/}}{{/}}

To learn what fields are available with Lookup Issues, please see this documentation.

Best regards,

Bill

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Why everyone using Jira must be GDPR-compliant

Did you know that penalties up to 4 % of the yearly company turnover are possible in case of GDPR violations? GDPR regulations are currently mainly relevant for companies in the EU, but countries lik...

51 views 0 0
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you