issue in hasAttachments() is not working

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

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. :(

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

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

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

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.

1 vote

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

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. :(

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

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()

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

issueFunction in hasAttachments()

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()

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

 

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/.

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

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

77 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you