Correct a Last Modified User Macro


I created a user macro that contains only last modified on information (Created on does not display). This is what's in the template area:


## Macro title: Last Modified

## Macro has a body: N

## Body processing: No macro body


## contains last modified date only. Created date doesn't display.

## @paramlastmodified:title=Last Modified

<font style="color:#B0B0B0;"><italic>Last modifed on action.dateFormatter.formatDateTime($content.getLastModificationDate())</font>


The macro displays like this: Last modifed on Aug 19, 2014 11:25

I'd like to add two more components:

1) Is there a way I can add am or pm, or amount of time passed (e.g. 30 minutes ago)?

2) Is there a way to add the attachments icon when images/files are added to the page?

Thanks for any help!


1 answer

1 accepted

This widget could not be displayed.

I decided to remove the time and just have the Last Modified date display.

## @param lastmodified:title=Last Modified
<font style="color:#B0B0B0;"><i>Last modifed on $action.dateFormatter.formatDateFull($content.getLastModificationDate())</i></font>

This displays as follows:

Last modifed on Tuesday, 9 September 2014

I did find a way to add the paperclip icon if attachments are present. But I can live with that.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

174 views 1 3
Join discussion

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