How do I query history of a custom select field

Hello,

We have a custom select field "Severity Level". We would like to run a filter to see which issue was in Level 1. These issues could have been changed to other levels. It seems only the system fields like "Priority Level" are able to search "Was in". Is it possible for custom select fields and how?

Thank you,

Sara

4 answers

1 accepted

Saralam, I've just filed an improvement request at https://jira.atlassian.com/browse/JRA-34103 to have the ability of using those operators in custom fields as well. Make sure you vote for it to increase its visibility, and feel free to add comments to it.

Hope it helps!

I don't think you can do a history search on custom fields.

Correct - the WAS/WAS IN/WAS NOT IN/WAS NOT operators only work with Assignee, Fix Version, Priority, Reporter, Resolution and Status fields only. If there's another way it would have to be through a plugin or custom code.

Thank you for your help. It's too bad we can't search history. It records everything but not searchable. Probably it's better to modify the selection list in "Priority" than creating a custom field in my case.

This issue is also important to us as we need to be able to run a history search on certain custom fields, which Jira currently does not support.

I had to get information on the last update of a customfield.  I was hoping there was a builtin JQL query that would work but unfortunately there is not (at this time). To get the history of a custom field I created a SIL Script Custom Field with the following script to get the last update made to a date field:

JFieldChange[] changes = getFieldChanges(key, "customfield_10000");

JFieldChange latestChange = changes[0];
date newest = latestChange.changeDate;

for (JFieldChange change in changes) {
if (change.changeDate > newest) {
latestChange = change;
}
}
return latestChange;

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

2,760 views 11 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
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