I know this should be a simple task but I can't seem to figure out how to create a custom field that displays the month only in MM format when a ticket gets closed, we are trying to set this up for Barchart reporting. Any help would be greatly appreciated.
I would simply install the script runner plugin, add a scripted field and add this code.
import java.text.SimpleDateFormat; return new SimpleDateFormat("MM").format(new Date(issue.getResolutionDate().getTime()))
1/ Create a read-only CF.
2/ Fill it using some scripting on a listener (or craete your own listener), postfunction or whatever (depends on your wf, screens, etc)
Edit: http://confluence.kepler-rominfo.com/display/KCF/SIL+Script+Custom+Field check if this calculated CF may help you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How about a select list custom field with all the months as the list of selections? They come with JIRA, so you dont have to write your own.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm trying to make it so it's automatic, ultimately it would be great to get the MM value from the system field "End dat / time" but it really doesn't matter where it comes from, I just need it to be automatic. Thanks for the suggestion though
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.