Forums

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

When sending email via JIRA Automation, if I want to set an incremental counter, how can I achieve

Peyush Agarwal
Contributor
April 1, 2020

When sending email via JIRA Automation, if I want to set an incremental counter, how can I achieve

1 answer

0 votes
Richard Bouchacourt
Contributor
April 2, 2020

Hello @Peyush Agarwal

Check this page : https://support.atlassian.com/jira-software-cloud/docs/use-smart-values-to-insert-numerical-values/

You have to create a numeric custom field and uses smart values in your rule.

 

Let me know the solution :)

Peyush Agarwal
Contributor
April 2, 2020

@Richard Bouchacourt  - No I am not able to figure from this. I wil explain further :

I have created an automation which will run on Daily basis. There is a field lets take Component and if it is empty assignee will recieve email tat component is empty. So if today is 01-Mar, they will get an email and I want to wrte that "This is <1> reminder" , if this is not updated until 03-March, it should look like "This is <3> reminder. 

Now the JQL I have used has 50 JIRA out of which 10 match with above condition. Now if on 01-March 10 emails are sent it will have incremental of 1. 

on 02-March, JQL returns 50 JIRA with 12 Matching conditions, then new 2 JIRA should get incremental of 1 only rather than 2. 

Richard Bouchacourt
Contributor
April 3, 2020

@Peyush Agarwal ,

I am not sure to understand well your need. You want to insert in the mail the gap (in days) between two dates ?

As a custom field store value for each issue, the rule should works.

What do you think ?

Peyush Agarwal
Contributor
April 3, 2020

@Richard Bouchacourt  - How to store values? 

Richard Bouchacourt
Contributor
April 6, 2020

@Peyush Agarwal ,

Store dates in custom fields date and use jql to subtract them.

Suggest an answer

Log in or Sign up to answer