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

Incremant a Custom feild.

Arooba Al Siyabi June 4, 2024

I want to increment a custom field when an issue is created, but I don't want it to increment if the issue is created by cloning; it should remain the same as the main issue.

I've attempted to create an automation for this purpose, but it's not functioning as intended. I'm open to any suggestions on how to improve it.

 

Please find the automation rule:

 

Picture1.png

 

The 'Edit Issue' block in the 'if' and 'else' conditions are the same:

Screenshot 2024-06-04 134716.png

The 'Set Entity Property' block in the 'else' condition:"

Screenshot 2024-06-04 134839.png

 

Thank you,

2 answers

0 votes
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 9, 2024

Hi Arooba,

Set the field with a default value of 0. 

For the existing issues, do a bulk change and set the value to 0 for all of the ones that have an empty value.  Then run it again. 

0 votes
Kalyan Sattaluri
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.
June 4, 2024

Hello @Arooba Al Siyabi 

Whats not working?

Is Clone check working correctly? That is, issue CR Number is being edited?

If only the increment logic is not working, Have you tried to increment the entity property manually, that is giving below smart value:

{{#=}} {{project.properties.sequence}} + 1 {{/}} 

Please try and also share audit log of a run and share which logic was supposed to be invoked (cloned/or not).

Thanks.

 

Arooba Al Siyabi June 5, 2024

Hi @Kalyan Sattaluri ,

 

The problem occurs when I first create a request; the CR number is not updated. It will be updated when I clone the request for the first time. If I create another request, it will remain the same.

 

Please finds an example:

10.png

 

Thank you, 

 

 

 

 

Suggest an answer

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

Atlassian Community Events