Forums

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

Script runners Parent Issue Script Field JQL searches.

Gaj Umapathy
Contributor
February 9, 2018

Hi,

When using the 'Parent Issue Script Field' from Script runner. Let's say we have a Parent issue field called 'Feature Link'. It is not possible to search in JQL to find all issues where this field is NOT empty.

"Feature Link" is not EMPTY

The operator 'is not' is not supported by the 'Feature Link' field.

 

Should this work? Also is it possible to make use of the JQL function portfolioParentsOf when using the 'Parent Issue Scripted Field' without having Jira Portfolio?

 

Cheers,

Gaj

2 answers

1 accepted

1 vote
Answer accepted
Konstantin Kozlov
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 31, 2020

Curiously to find all issues with non empty SR's parent link I found that you can use "not in" with any string that looks like a issue.
Even like: 

"Feature Link" not in (COVID-19)
0 votes
Ivan Tovbin
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.
February 9, 2018

That's because 'Feature' is an issue type and not the name of the field, at least judging by your description. A correct JQL would look something like this:

issuetype = Feature and <custom field name> is not empty
Gaj Umapathy
Contributor
February 9, 2018

Okay, to avoid confusion with the issue type called 'Feature', let's say the scripted field is called 'Feature Link' . 

Ivan Tovbin
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.
February 9, 2018
issuetype = Feature and "Feature Link" is not empty
Gaj Umapathy
Contributor
February 9, 2018

Thanks Ivan. So this is mainly a question for someone from Adaptavist Script Runner.  I know how to do the JQLs but it's not working. 

So The 'Feature Link' is a scripted field that shows the parent issue of any issue type 'Feature' where the it has a 'Feature' like link. So I would see the 'Feature Link' field on a Story issue type or an Epic issue type.

I can say 'Feature Link' = ISSUE-KEY and it gives me the list of stories, epic requirements and anything else that is linked to this Feature. This works fine.

However, the 'is not empty' search doesn't work. The search template used is 'Searcher:  Issue Key Searcher'. 

Ivan Tovbin
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.
February 9, 2018

Ah, I got a bit confused. So the question is how to search for issues with an empty custom field which has its searcher set to 'Issue Key Searcher'.

Gaj Umapathy
Contributor
February 9, 2018

That's right. 

Ivan Tovbin
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.
February 9, 2018

Have you tried changing the searcher to 'Free text searcher'? Or that somehow goes against your process logic?

Gaj Umapathy
Contributor
February 9, 2018

Yes... but you need it to be the template with issue key searcher otherwise the field will display

$(value.key} 

Alexey Matveev
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.
February 9, 2018

I just checked searchers and I could not see any difference with a field display. Could you give more details.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events