Hi,
since this is not a standard display format for dates in JIRA, you need to create a Calculated Text field that will contain the string representation of the date in the format you want. Note however that this will not work well for sorting (you'll need to sort on the original field instead).
The formula of the calculated text field will be something like:
<!-- @@Formula: value = issue.get("customfield"); if (value==null) return null; df = new java.text.SimpleDateFormat("MM/yyyy"); return df.format(value); -->
where customfield is the name of the date field you want to format (see https://innovalog.atlassian.net/wiki/display/KB/Using+issue.get%28%3Cfield_name%3E%29+in+scripts).
As for your second question, you first create a "Transition Date/time" field (see https://innovalog.atlassian.net/wiki/spaces/JMCF/overview) which you then use in a calculated text field as above.
David
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Both will work, as stated in the documentation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi, David,
can I know how to do the calculation to add date ?
My calculated date time field formula as
<!-- @@Formula:(issue.get("customfield_10805") == null ? null : issue.get("customfield_10805")-60) -->
<!-- @@ format: DATE -->
It doesn't work. it only work ; it only work w/o calculation ( exclude -60.
Thanks in advance
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And second question:
How do I set up a customfield that will show date(month) of last transition to particular status?
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.