We are trying to figure out a way to know/get the date a custom field gets set for reporting purposes. For example, we have a Yes/No select list field that gets set after an issue gets created. Is there any way to get the date this was set internally? If not, can we get the information we are looking for a different way? Our only other way around this is to change the field to a date field and have the user enter in the date they set the field but we don't like this option.
The value can be seen in the history portion of a ticket.
You can also do stuff like this in jql to get a list of issues:
project = blah blah and customfield changed after startofweek()
However, you can't query for the values directly. Though you could do that in the JIRA DB by looking at the changegroup, changeitem, and jiraissue tables. jiraissue is a list of issues. changegroup is a single change operation that occurs. changeitem is a single item that is changed as part of a group.
For example, if I update 3 different custom fields, I will get 1 changegroup, and 3 changeitem entries.
I think you have two possibilities:
When you create an issue (status Open) you could add a transition from Open to Open. In this transition you use a screen with this select list (remove it from edit screen) . Now you can set a custom date (time) field and populate it with the current date (time) in the postfunction of that transition.
The other is to use a scripted field (script runner) similar to this example:
Since I'm not an scripting expert, I can't give you the correct script, but maybe others can help.
We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...
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!
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