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.
@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")}}
{{/}}
Hi Akash,
It is working as expected.
Thanks for the solution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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")}}{{/}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jack,
When I tried your smart value it throws an error kindly check.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.