Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Jira Automation - How to format date from changelog

Hi community,

 

I have to transfer ticket from team-managed to company-managed.

Inside the team-managed project, users have created customfield with the date format and when I will move ticket to company-managed the value of this customfield will be deleted as the customfield only exists on the company-managed project.

My solution is to create a customfield and then retrieve value from team managed customfield.

I use jira automation to do it.

My rules is:

Trigger Issue Moved: from project A to project B

I create a variable and the smart value is based on changelog

Then I edit my company managed customfield with my variable.

Below my config

Automation rule 01.pngAutomation rule 02.png

 

When I try my rule, I have the following error:

Automation rule 03.png

 

How I can format the changelog in order to have in jra date format?

 

Thank you

1 answer

1 accepted

1 vote
Answer accepted
Mohamed Benziane
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 26, 2023

Hi,

You can use the dateformat option in automation

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/#--

try this :

{{estimation.jiraDate}}

Bill Sheboy
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 Leaders.
Oct 26, 2023

Hi @CEDRIC DEVAUX 

Adding to Mohamed's answer...

As you are using a text value (either from the changelog or the variable), it must first be converted to a date type before using it.  For example:

{{estimation.toDate}}

And if that does not work, you may need to parse the field with text functions to get the conversion to work.

Kind regards,
Bill

Like CEDRIC DEVAUX likes this

Hi Mohamed & Bill,

 

I tried {{estimation.jiraDate}} and it's not working.

@Bill Sheboy {{estimation.toDate}} works !!

 

Thank you all for your help

 

Kind regards,

 

Cedric

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events