Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Format of a Date Picker Custom field in an Email post-function (ScriptRunner)

Camille Lecerf
Contributor
April 23, 2018

How to change the format of my Date Picker Custom field in my Email post-function please ?
I am using this in the Email template : 

<% out << issue.getCustomFieldValue(com.atlassian.jira.component.ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("DatePickerCustomFieldName")) %>

And I am getting this :

2018-04-23 00:00:00.0

I'd like to get :

23-04-2018

 Thank you for your help !

2 answers

1 accepted

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
Renjith Pillai
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
February 2, 2013

Create a script using https://bobswift.atlassian.net/wiki/display/JCLI/JIRA+Command+Line+Interface and pass an argument of story to it. Inside the script create the list of sub-tasks that you want to create by standard for every story.

Or write a script to use curl to create sub-tasks of issues.

This will ease your job till such a feature gets implemented in GreenHopper.

0 votes
AhmadDanial
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 24, 2013

Hey there, Marten.

I believe that this is not a standard feature that is implemented in the current GreenHopper. Perhaps you can consider raising a feature request in https://jira.atlassian.com/ and explain to the developers that this feature will greatly benefit you and other users in the future.

Warm regards,

Danial

Marten
January 24, 2013

Thanks for your reaction Danial :)

Having never used jira.atlassian.com this way, what's the best way to raise an issue request? Just create an issue (type feature) within.... which project?

AhmadDanial
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 24, 2013

Hey there again, Marten.

You are most welcome. In this case, you can actually create an issue with the type Story under the project GreenHopper. Fill in all the details such as the Summary, Version, and Description of the feature that you are proposing.

Mind you that if you are able to present a good use case, the developers will definitely look into this issue and consider implementing it. If you have any difficulties in raising one, just let me know! ;)

Warm regards,

Danial

TAGS
AUG Leaders

Atlassian Community Events