Find Epics without a specific issuetype linked

Jan Sękara September 26, 2016

Hi,

I need to find via querry, list of epics that do not have certain issuetype (lets say "Task") linked to them.

Is this possible via search or any of scriptrunner functions?

2 answers

1 vote
JamieA
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.
September 27, 2016

At it's simplest something like:

issuetype = Epic and not issueFunction in linkedIssuesOf("issuetype = Task")

but you probably would want to add additional filter clauses to the linkedIssuesOf function.

0 votes
Jan Sękara December 19, 2016

Unfortunately it doesn't work. Can you advice another solution?

JamieA
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.
December 20, 2016

Doesn't work how? Can you find one issue that does appear and should not, or does not appear and should, and describe it? Ie issue type and links.

Jan Sękara December 20, 2016

It still shows epics with "task" issuetype attached.

Afaik, this function does not support Epic Link, just the linked types like blocked/cloned etc.

 

JamieA
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.
December 20, 2016

Oh hrm i'm not sure what version of ScriptRunner you have.

You could try epicsOf("issuetype = Task") instead of linkedIssuesOf.

Like Bernardo likes this
Jan Sękara December 20, 2016

This worked perfectly, thanks.

Still don't get the logic of it... wink

Suggest an answer

Log in or Sign up to answer