Forums

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

Command to obtain a report with issues without the word "DUPLICATE" in summary field/comment box?

Luciana Apostol
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!
February 13, 2019

Good morning, all!

I’m trying to figure out the command to obtain all the issues created in a week, but the results should not have the word “DUPLICATE” in the summary field or in the comment box. I know the command to obtain the duplicates:

component = "A" AND created >= "2019/01/01" AND created <= "2019/01/07" AND project = "B" AND text ~ "DUPLICATE"

but I can’t modify the command to see the results without the duplicates. I have tried

component = "A" AND created >= "2019/01/01" AND created <= "2019/01/07" AND project = "B" AND text !~ "DUPLICATE"  

component = "A" AND created >= "2019/01/01" AND created <= "2019/01/07" AND project = "B" AND text != "DUPLICATE"

component = "A" AND created >= "2019/01/01" AND created <= "2019/01/07" AND project = "B" AND text IS NOT "DUPLICATE"

component = "A" AND created >= "2019/01/01" AND created <= "2019/01/07" AND project = "B" AND text NOT IN "DUPLICATE"

but no success. Can you help me out, please?

 

Thank you!

1 answer

1 accepted

0 votes
Answer accepted
Payne
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 13, 2019

!~ works, but not with the "text" field. You can use it on specific fields, such as summary, e.g.

summary !~ duplicate

Comments are a little trickier, in that you can use ~ and !~ on them, but !~ will return only issues with at least one comment in which your term doesn't appear. So, if you tried

summary !~ duplicate and comment !~ duplicate

issues that don't have any comments will not be returned. If you happen to have ScriptRunner installed, there is a hasComments() JQL function that you could use, something like

summary !~ duplicate and (comment !~ duplicate or issueFunction not in hasComments() )

Luciana Apostol
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!
February 14, 2019

Thank you, your answer has been very helpful!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events