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

0 vote

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published 8 hours ago in Trello

Alice Camilla on organizing your work/life/fandoms with Trello!

@Alice Camilla is a university student, currently writing her MA thesis in Archaeology. She's also a freelance blogger and content creator, writing about geeky stuff from productivity apps to JR...

34 views 1 6
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