I would like to get the “year/month” from the JIRA issue “Due date” (and hold it in a field in the issue).
e.g. “due”= 21/Apr/16
“Misc Custom Field” = 201604
This will allow us to pivot fields like “remaining estimate” by month, rather than by day. Can someone provide the syntax (and field type) I need to enter into the "Misc Custom" plugin Field to return the values I’m hoping for?
thanks!
Community moderators have prevented the ability to post new answers.
You can create a Calculated Text Field with a formula like:
<!-- @@Formula: duedate=issue.get("duedate"); if (duedate==null) return null; return String.format("%tY-%tm", duedate, duedate); -->
And don't forget to choose the "Exact Text Searcher (statistics-compatible)" searcher (in the Edit screen for the custom field).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.