Forums

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

Sumar un número a un campo personalizado numérico

Oscar Sanchez February 14, 2024

Tengo un campo personalizado tipo numérico, necesito que cada vez que llegue al estado devuelto, sume un 1, es decir funcione como un contador. esto llevo, pero no me funciona, estoy inventando y nada me funciona

image.png

1 answer

1 vote
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.
February 14, 2024

Hi @Oscar Sanchez 

To increment a custom, number field you may enter this as the smart value when you select the field from the dropdown list:

{{issue.your field smart value.plus(1)}}

The key is ensuring you use the correct smart value for your field.

 

Smart values are name, spacing, and case-sensitive.  And often the smart value does not match the displayed field name on the issue views.  The steps to identify the correct smart value (and custom field id) for any field are:

  • identify an issue which has your field(s)
  • call a REST API function with a browser to search for your issue:
https://<yourinstanceurl>/rest/api/2/issue/<issuekey>?expand=names
  • search on the page for your field, such as with CTRL-F
    • if you find the field, you will also find the smart value, custom field id, and structure / attributes it has
    • if you do not find the field, it may not be supported by automation rules

 

I also note your rule is using the advanced edit with JSON under "More Options", but the syntax is not JSON.

What are you trying to update with that information?

 

Kind regards,
Bill

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