Forums

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

Is possible to use Date Time custom fields in Jira smart values - date and time?

Humberto Gomes
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.
August 9, 2023 edited

Hi,

I can see this list of jira smart values for date and time fields:

Jira smart values - date and time | Automation for Jira Data Center and Server 8.2 | Atlassian Documentation

here, the examples are always for {{now}}.

 

I'm trying to use this in Automation Rules with my custom field but is not working:

Example:

Created Day
{{issue.created.dayOfWeekName}}  --> Works

and

Reported day:
{{issue.customfieldId_11506.dayOfWeekName}} - Do not Work

 

Can you help me, is this possible to be used with custom fields?

 

 

 

 

 

 

3 answers

2 accepted

3 votes
Answer accepted
Sayed Bares _ServiceRocket_
Community Champion
August 9, 2023

@Humberto Gomes remove the id from your code and it should work. so your smart value should be {{issue.customfield_11506.dayOfWeekName}}

Humberto Gomes
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.
August 9, 2023

Yes, there is a typo  (ID twice).

Like • Sayed Bares _ServiceRocket_ likes this
1 vote
Answer accepted
Marc - Devoteam
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.
August 9, 2023

HI @Humberto Gomes 

I think the smart value of your field Reported Day should be:

{{issue.customfield_11506.dayOfWeekName}}

0 votes
Rilwan Ahmed
Community Champion
August 9, 2023 edited

Hi @Humberto Gomes ,

Can you please let me know what type of custom field is customfieldId_11506 and reported day?

Humberto Gomes
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.
August 9, 2023

It's Date Time

ScreenHunter 1736.png

Suggest an answer

Log in or Sign up to answer