Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is there a way to search by commenter?

Hi,

Is there a way to search tickets by who commented on them? I want to find tickets that a specific user has commented on. Is there a way to do that?

Or maybe search by watcher? Search tickets by a specific user who watches them?

 

2 answers

2 accepted

1 vote
Answer accepted

In advanced search you can specify:

commentedBy = "user name" and then the rest of your search criteria.

For watcher specify:
watcher = "user name" and then the rest of your search criteria.

Thanks for the quick reply.

"commentedBy" does not appear as an option for me in advanced search. It says "Field 'commentedBy' does not exist or you do not have permission to view it."

Is there any trick to turn it on?

I apologize, that is available via the ScriptRunner app.  I should have verified that prior to posting.

https://marketplace.atlassian.com/apps/6820/scriptrunner-for-jira?hosting=cloud&tab=overview

Ah, I understand.

Thank you for the information.

0 votes
Answer accepted
Payne Community Leader Jun 07, 2021

This is a bit clunky, but you can export a set of issues to CSV and then search the comment field(s). Note that you can export at most 1000 issues, so narrow the search criteria until you're under that threshold. "Number of Comments" > 0 is a start. Perhaps limit to modified within the last year or something like that as well. Once you have your matching issues displayed, click Export in the upper right and then CSV (All fields). Open in Excel, etc. and look for the comment column(s). There will be a column for each comment, so if, for example, one of your matching issues has 10 comments, there will be 10 comment columns. You could then use conditional highlighting or a similar tactic to identify rows containing the username of interest.

Or, if you or your DBA can run a query against the database, you could easily tackle it that way as well. I for the most part stay out of the database, but sometimes a quick query can be a good solution to something like this.

SELECT concat(p.pkey,'-',issuenum) as issueNum,ja.CREATED
FROM jiraaction ja
left join jiraissue i on i.id = ja.issueid
left join project p on p.id = i.project
where actiontype='comment'
and AUTHOR='USERNAME'
order by ja.ID desc

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

Introducing External Collaboration for Confluence

We’re excited to introduce external collaboration for Confluence, now available in early access. It is available to preview for Confluence Cloud Premium and Enterprise customers. (If you're not on ...

188 views 0 7
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you