Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I create a filter based on when a button was clicked?

Jennet Volden
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 2, 2018

In my JIRA tasks, there is a 'Start Progress' button.  How do I create a filter that will display the time for when that button was pressed?

1 answer

2 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 2, 2018

Hello,

You can not create a filter, which would show you this info. Filters can return only issues. 

You need to create a custom field, which would show you this info. You can use the Power Custom Fields add-on for it. It is a free add-on.

https://marketplace.atlassian.com/apps/1210749/power-custom-fields?hosting=server&tab=overview

The code for this custom field would look like this:

string field_name;
string[] field_history;
field_name = "status";
field_history = fieldHistory(key, field_name);
print("here");
for(number i = 1; i < size(field_history); i += 2) {
string newStatus = field_history[i];
date newDate = field_history[i-1];
if (newStatus == "TO DO") {
return newDate;
}
}

 You can add this custom field to an issue view screen or add it as a column in the Issue Navigator.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events