Forums

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

Exclude issue link from filter help

David Abowitt March 29, 2019

I have a filter that pulls action items from our RCA project that have not been completed yet. I was attempting to target issue link = "Is RCA Remediation" only but am also getting "Has RCA Remediation" type links in the filter. Thus, I don't want to capture or wish to exclude issue links of type "Has RCA Remediation. Any thoughts or assistance. 

Here is my query:

issueFunction in hasLinkType("RCA Remediation") AND status not in (Done, Resolved, Abandoned, Closed) AND issue in linkedIssuesInQuery("issuetype in (Task, 'Root Cause Analysis') and statusCategory != Done ") AND issuetype not in ("Root Cause Analysis") ORDER BY due ASC, issuetype DESC, key ASC, cf[16524] ASC

2 answers

0 votes
David Abowitt April 8, 2019

@Fazila Ashraf and community sorry for late reply. So not sure what argument to use for haslinks. When I tried hasLinks("Has RCA Remediation") I get error occurred communicating with server. We are on-prem do I need scriptrunner installed as we don't have it installed. 

Fazila Ashraf
Community Champion
April 17, 2019

Hi @David Abowitt 

Please try with scriptrunner installed. It is a commercial plugin.

Are you sure you do not have scriptrunner already? The query in your question has 'issueFunction in' which is provided by scriptrunner.

David Abowitt April 17, 2019

I will check with my IT dept which manages the Jira environment. Will let you know.

David Abowitt April 17, 2019

@Fazila Ashraf we do have it installed server side. Thus, back to original question about error I am getting when using suggested command.

0 votes
Fazila Ashraf
Community Champion
March 31, 2019

Hi @David Abowitt 

Instead of hasLinkType , use hasLinks -> https://scriptrunner.adaptavist.com/latest/jira/jql-functions.html#_haslinks 

That takes the inward/outward linkname (Is RCA Remediation) as parameter. 

Suggest an answer

Log in or Sign up to answer