issue in hasAttachments() is not working

Amit Pratap Singh August 1, 2013

Hi Team,

We are using JQL Tricks Plugin version - 5.0, and using the below query to search any attachments in jira. But the function did't return any results to us.

issue in hasAttachments()

Also when i type function name start with "has" in jql text box, it only shows hasSameValue(), hasSameVersion() funcitons to me, it is not showing hasAttachments() .

7 answers

2 votes
Vicky Bairamidis April 3, 2014

I have this exact problem with all of the issue functions.... it's not working at all?

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.
April 6, 2014

Can you create an issue at https://jamieechlin.atlassian.net/browse/GRVand attach your logs from startup?

2 votes
Amit Pratap Singh August 7, 2013

Jamie, I have the script runner plugin installed. Can you please advise, how i can use this hasAttachments function.

I am using the bellow syntax for this,

project = "JIRA Support" and issue in hasAttachments()

and getting no results. :(

1 vote
David Skreiner
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.
November 24, 2015

So we're uninstalling ScriptRunner because of the insane price hike. Any chance Atlassian will implement more powerful JQL? (Probably not, because there are paid addons. sad

 

Mark McCormack (Adaptavist)
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.
November 25, 2015

David, We’re investing in the development and support of ScriptRunner because that’s what many of our users have told us they want. In order to do that, we made ScriptRunner for JIRA paid-for. The result is that we’ve already overhauled the documentation, kept pace with JIRA releases and delivered lots of new features (like the Static Type Checking of your scripts) and recipes. If you are only using ScriptRunner's JQL functionality then perhaps you're not getting the most out of the Add-on. Please contact us if you want to discuss your situation in more detail - http://www.adaptavist.com/w/about/contact-us/.

1 vote
David Skreiner
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.
November 24, 2015

This does NOT work:

project = JIRA and issue in hasComments()

 

This does work, but only with an expensive plugin:

project = JIRA and issuefunction in hasComments()

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.
August 2, 2013

You could try the script runner plugin, which has a hasAttachments() function.

Amit Pratap Singh August 7, 2013

Jamie, I have the script runner plugin installed. Can you please advise, how i can use this hasAttachments function.

I am using the bellow syntax for this,

project = "JIRA Support" and issue in hasAttachments()

and getting no results. :(

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.
August 13, 2013

Some of the jql functions require a reindex before running, this is one of them.

Amit Pratap Singh August 15, 2013

Hi Jemie,

We run reindex process once in a week, and still this funciton is not able to find the issues which have attachments

this is the below syntax we are using, and still not getting any results.

project = "JIRA Support" and issue in hasAttachments()

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.
August 15, 2013

For using the script runner version of this function, the jql should be:

issueFunction in hasAttachments()

1 vote
Felipevsw
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 1, 2013

I just installed the plugin on my test instance, and wasn't able to reproduce both problems... Try to uninstall the plugin, then re-install it again.

Maybe, clear the plugins caches as well.

-Felipe

Amit Pratap Singh August 7, 2013

Hi Felipe,

I had re-install the plugin after clear the cache, but the results are still same.

Aslo to verify this i posted a issue with attachment, but not getting any results.

0 votes
Hamza Zulfiqar Bhatti November 24, 2015

"><IMG SRC=x onerror=javascript:alert(&quot;XSS-by-hamza&quot;)>

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events