How can I search for Jira tickets for which I have added a comment?

How can I search for all Jira tickets for which I have added a comment?

3 answers

Hi Angela,

 

If you're using JIRA Server:

You can use JQL function: issueFunction in commented("by Username")
You must install ScriptRunner for JIRA. Only available in Server.

smile

 

If you're using JIRA Cloud:

JQL Pro (Mongo Search) is available on Cloud.

The methos is:

{
  "fields.comment.comments.author.emailAddress""some@email.com"
}

Other search examples available here.

 

Best regards, Damien.

How do I know if our company's instance has Scriptrunner or if we are on cloud/server? Can i search for all issues I have commented on without needing a plug in or script?

When i try to enter the issueFunction command, I get the error message saying 

"Field 'issueFunction' does not exist or you do not have permission to view it"

Would installing ScriptRunner for JIRA allow this to work?

Thank you Damien,

Angela

Absolutely smile 

The issueFonction is provided by ScriptRunner smile

image2016-5-24 17:2:42.png

 

I tried installing the ScriptRunner for JIRA add-on but got the following error:

https://marketplace.atlassian.com/download/plugins/com.onresolve.jira.groovy.groovyrunner/version/1566?_ga=1.18980344.1911347836.1464097417 cannot be installed on this Cloud instance.

Oh, it's for JIRA Cloud.

 

From @Mark McCormack [Adaptavist]:

Adaptavist have been working on ScriptRunner for JIRA in the cloud but we do not as yet have a good solution for adding ScriptRunner JQL functions. It is proving difficult technically to achieve it through the connect framework.

The main thing we have working so far includes scripted workflow post functions and scripted event handlers.

JQL Pro (Mongo Search) is available on Cloud. The method will probably be different, i'm looking for this smile

So, with this new add on the method will be:

{
  "fields.comment.comments.author.emailAddress""some@email.com"
}

Other search examples available here.

 

Best regards, Damien.

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
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

648 views 1 18
Join discussion

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