Creating custom date fields

Requirement:  I am looking to create a dashboard gadget that allows me to show how many issues were created (or resolved) each month over a given time period (say a year)

What I think I need to do is create a custom date field to track just the month and year from the date created (or resolved).  I could make this a hidden field, but then expose it to the two dimensional filter table gadget.  Then I can do a count of issues per month vs Dev Team or Priority, for example.

Does anyone know how to create a field that reads the value of the datecreated and stores just the Month (and/or Year).



2 answers

1 accepted

I got the answer I needed and thought I'd post it here in case anyone else would like to do something similar...

you need to create a Calculated Text Field, and use a formula such as:

<!-- @@Formula: new java.text.SimpleDateFormat("MM-yyyy").format(issue.get("created")) -->

Both of those fields are available and set automatically out of the box.


Created Date, Resolution Date.


Created Date is set on create.

Resolution Date is set when the issue's resolution field is set.

The built in "Created vs. Resolved Chart" dashboard gadget will get you what you need.

Thanks Randy, but thats not really what I am after.  I want a table of issues by either dev team, or priority.  Not Created vs Resolved

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Fadoua M. Boualem
Published yesterday in Trello

Using Trello to manage events

As a Jira power user, I was at first doubtful that Trello could benefit my workflow. Jira already uses boards (ones you can customize!), so why would I even need to use Trello?! In this post you will...

447 views 6 7
Read article

Atlassian User Groups

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!

Find my local user group

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

Groups near you