Use Behaviours to Format Date Fields

We currently have a project that is using several date fields and we have a corresponding Script Field for each one to display it in a MM/DD/YYYY format.  Could we accomplish this using a single Behaviour Rule?  We're not really interested in storing the format, just displaying it.  Also, the format would need to be retained if an export/email was done.  

2 answers

1 accepted

Accepted Answer
0 votes

Behaviours don't do anything on the view issue screen. 

Hi Chris,

You should format the date needed using Java Simple Date Format. I have an example of how this can be done in the following answer: https://answers.atlassian.com/questions/37044719.

I hope this helps.

Kristian

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Monday in Jira Ops

Jira Ops Early Access Program Update #1: Announcing our next feature and a new integration

Thanks for signing up for Jira Ops! I’m Matt Ryall, leader for the Jira Ops product team at Atlassian. Since this is a brand new product, we’ll be delivering improvements quickly and sharing updates...

535 views 0 9
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