Query for issues for user activity.

I would like to query for tickets where the user has edited a field, changed the status or added a comment inside the last 2 days.

Is this possible? Can I query for a user's name inside an issues activity list and limit by a certain period?

If its possible please add an example query.

2 answers

1 accepted

You won't find all of this as part of native JQL, you'll either have write your own JQL functions or could try a SQL query and get some information

here's an example query which would cover issue changed by a named user after a given date

https://confluence.atlassian.com/display/JIRACOM/Example+SQL+queries+for+JIRA#ExampleSQLqueriesforJIRA-Findallissueschangedbyauserafteracertaindate

SELECT DISTINCT(j.id) FROM jiraissue j, changegroup g
WHERE j.id = g.issueid
AND g.author = '<user name>'
AND g.created > '<date>';

I assume the SQL is still valid with the current schema.

Give the script runner plugin a look as well.

I like the first impression of the script runner plugin, perhaps i can run your query with it?!

what about sth. like

updated >= startOfDay(-2d)

Returs the issues that have been updated during the last 2 days.

Cheers Christian

It's good but only getspart of the query, it could be updated by anyone. You can use the "changed" keyword for status to make sure it's changed by the right person but not for comment. Depending onthe named field you *might* be able to sue changed but it's a short list of supported fields.

You could always use the script runner plugin to write a custom JQL function

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,175 views 13 19
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot