The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Looking for Date format

G Ashok
Contributor
August 5, 2024

Hi Team 
I am looking in to query for Date format instead  of 04/01/2024
currently using 

({{issue.created.format("04/01/2024")}} - {{issue.created.format("08/31/2024")}})

Now I am looking below 

Apr 1, 2024 - Aug 31, 2024

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Samuel Gatica _ServiceRocket_
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.
August 5, 2024

Hi @G Ashok 

 

Try with the following format:

{{issue.created.mediumDate}} 

The result should be "Aug 8, 2024"

 

Hope this helps

Best regards

Sam

G Ashok
Contributor
August 5, 2024

Hi @Samuel Gatica _ServiceRocket_  I need to setup the dates between 

Apr 1, 2024 to Aug 31, 2024 


Samuel Gatica _ServiceRocket_
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.
August 5, 2024

Hi @G Ashok 

Could you please provide additional context? Are you utilizing this with JQL, Automation, or another tool?

Additionally, if you could provide a screenshot, it would be helpful to us.

 

Best regards

Sam

G Ashok
Contributor
August 5, 2024

I am trying setup the dates in Automation Description Please see below Image 

Date Automation.PNG

Samuel Gatica _ServiceRocket_
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.
August 5, 2024

Hi @G Ashok 

For reference please check https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/

The Smart Value {{issue.created}} retrieves the creation date of the triggered issue. If you wish to format this value, you can utilize {{issue.created.mediumDate}}.

Additionally, using {{issue.created.format("04/01/2024")}} will establish a fixed date in the Description as 04/01/2024. 

 

Example of {{[date].[dateformat]}}

  • {{now.jiraDate}} //returns 2020-08-18
  • {{issue.created.mediumDate}} //returns "Aug 8, 2024
  • This issue was created on {{issue.created.format("dd/MM/yyyy")}} //returns This issue was created on 18/08/2020
  • This issue was updated at {{issue.updated.shortTime}}. //returns This issue was updated at 2:40 AM.

Are you attempting to retrieve the time period from a custom field in the issue?

Best regards
Sam

G Ashok
Contributor
August 6, 2024

Hi @Samuel Gatica _ServiceRocket_ Thanks for quick support, I found the way to resolve the issue. Thank you!


DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events