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

This widget could not be displayed.

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!

This widget could not be displayed.

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 widget could not be displayed.

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.

This widget could not be displayed.

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 Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

72 views 1 0
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