Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JQL Query for linked issue not working as expected.

Jenifer Kuntz
Contributor
November 13, 2023

I am creating an automation rule and doing an issue lookup with the following JQL

issue in linkedissues({{issue.key}}) and issueLinkType in ('parent story')

What I expect it to do was pull the issues that were linked to the issue with a parent story link type.

What it is doing is pulling the the issues linked to the issue then looking at those issues and seeing if they have a parent story link.

I put the query in the navigator with the same results.

issue in linkedissues("ISSUE-123") and issueLinkType in ('parent story')

For example 

My issue ISSUE-123 has the following linked issues:

ISSUE-124 (parent story Link)

ISSUE-125 (relates to Link) This issue has a parent story link to ISSUE-111

ISSUE-126 (relates to link) No Parent story link.

The quesry is pulling all three issue.

I am adding a number field from the linked issues. In this case I would Only want it to look at ISSUE-124 but it is adding the value from ISSUE-124 and ISSUE-125 because they both have parent story links.

Any idea on how I can have it only pull the parent story link of the initial issue.

Thanks!
Jenifer

 

 

1 answer

0 votes
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 8, 2018

Hello Preeta,

Please, check the use-case and instructions on the documentation below to know how you can organize your team planned leaves and sick leaves using Tempo Timesheet plugin:

Using Tempo Timesheets for Vacation Planning

Suggest an answer

Log in or Sign up to answer