JQL Condition to check if issue has linked issues

Tobias Plankl January 7, 2020

Hey guys,

I search a jql condition which i can use in an automation in Jira Service Desk.

 

image.png

The new condition should be check if the issue has linked issues. If there is no linked issue the automation should be triggered.

 

Thanks

Tobi

3 answers

5 votes
Jack Nolddor _Sweet Bananas_
Atlassian Partner
January 7, 2020

Hi Tobias,

Have you tried to setup a new JQL Condition with the following clasure?

 

Issues with issue links:

issueLinkType IS NOT EMPTY

 

Note that Issue Link Type field was introduced on Jira 8.x

 

Hope this helps,

Regards

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 7, 2020

I think he is in Cloud, and I don't think that's an option. I don't see it.  :-(

Tobias Plankl January 7, 2020

Yeah im using Cloud. It doenst work but nice try

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 7, 2020

Yes, I wish Cloud had that functionality.  :-)

Ignacio Pulgar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 8, 2020

The issueLinkType field is available on Cloud instances, so this answer should work (I've just checked it on a Jira Cloud instance).

Should this solution not work for you, then you may want to contact Atlassian Support regarding this incident.

Sometimes, they roll out new features in phases, meaning there could be a pending upgrade in your Jira instance.

Regards.

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 8, 2020

Ignacio - which Condition on the transition did you try that for?

Tobias Plankl January 8, 2020

I tried this condition 

issueLinkType IS NOT EMPTY

it was accepted, but it was not correct.

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 8, 2020

Which condition type did you select to use that code?

Tobias Plankl January 9, 2020

The complete rule type is user defined. And the condition type is the same as the status = "laufende Arbeiten".

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 9, 2020

Let me try asking this way - when you click on Add a Condition, this is the list I see of options to choose.

Conditions.png

 

I am using the JMWE app so there are more choices. Specifically, which option are you choosing? 

David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 9, 2020

@John Funk you are talking about workflow conditions, and Tobias and Ignacio are talking about Jira Service Desk Automation Rule conditions, hence the misunderstanding.

You are right, there is no JQL workflow condition, simply because Atlassian chose to rely on Jira expressions for workflow conditions on the Cloud and Jira expressions cannot run JQL searches (https://ecosystem.atlassian.net/browse/ACJIRA-1789)

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 9, 2020

@David Fischer  Ah, thanks for the clarification!

0 votes
Chris
Contributor
November 8, 2024
issueLinkType IS NOT EMPTY

This works fine in current JSM cloud  

0 votes
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 7, 2020

Hi Tobias - Welcome to the Atlassian Community!

You should be able to accomplish that with the JMWE add-on (Jira Miscellaneous Workflow Extensions). 

Tobias Plankl January 7, 2020

And without an add-on its not possible?

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 7, 2020

No, I do not believe that is possible without an add-on.

Tobias Plankl January 7, 2020

Hmm...

 

Okay so i have to use an workaround with an checkbox field.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events