when I'm updating a short Text field using Automation the field value not visible in the screen.

Vishnu Vardhan Chenna
Contributor
March 7, 2025

Hi,

 

I have configured automation rule that updating custom field which is Short text field type.

when I was triggered the rule, it will run successfully but the custom field will not updated.

 

trigger:

field value changed for status

-any changes to the field value

condition:

issue type : Epic

then edit:

financial year (Custom field)

value: {{#if(now.format("MM").asNumber.lessThanOrEqualTo(3))}}{{now.minusYears(1).format("yyyy")}}-{{now.format("yy")}}{{/}}

 

which type of field I have to use to update the custom field 

the financial field should be like 2025-26.

 

 

2 answers

1 accepted

3 votes
Answer accepted
Akash Singh
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 7, 2025

@Vishnu Vardhan Chenna Try using the below Smart value, this should work for sure. Use month format to only get the number value and use less than equal to function (lte) for comparisson.

{{#if(now.format("M").asNumber.lte(3))}} 
{{now.minusYears(1).format("yyyy")}}-{{now.format("yy")}}
{{/}}

  

Vishnu Vardhan Chenna
Contributor
March 9, 2025

Hi Akash,

 

It is working as expected.

Thanks for the solution.

Like Akash Singh likes this
1 vote
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 7, 2025

Hi @Vishnu Vardhan Chenna , I think you value formatting may be the culprit. Just as a test to see if the rest of the rule is working can you set the value to - {{now.minusYears(1).format("yyyy")}}-{{now.format("yy")}}{{/}}

Vishnu Vardhan Chenna
Contributor
March 9, 2025

Hi Jack,

 

When I tried your smart value it throws an error kindly check.image (33).png

Suggest an answer

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

Atlassian Community Events