Forums

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

Jira Automation - problem with due date update

Sandor Banyai October 18, 2021

Hello

 

I try to update the duedate field of an issue by Jira automation like that:

1.JPG

 

The calculation step (it would be a bit more complex but for simplicity I added a constant):

4.JPG

 

Update of Duedate:

2.JPG

 

And the error:

3.JPG

 

I ask for your help, what did I do wrong?

1 answer

1 accepted

3 votes
Answer accepted
Alex Koxaras -Relational-
Community Champion
October 18, 2021

Hi @Sandor Banyai

You can't add an integer to a date like that, and you don't have to create a new variable. You can edit directly your due date and write the following smart value:

{{issue.fields.startDate.plusDays(7)}}
Ajay _view26_
Community Champion
October 18, 2021

Yup ! that should solve the problem! Great job @Alex Koxaras -Relational- !

Alex Koxaras -Relational-
Community Champion
October 18, 2021

Glad to know! :)

Sandor Banyai October 18, 2021

I'm sorry but I still get the error.

I modified it like that:

5.JPG

 

And got that:

6.JPG

Alex Koxaras -Relational-
Community Champion
October 18, 2021

I don't think that this has something to do with the smart value (btw I didnt know that you wanted to add 7 weeks to the due date. If not mistaken I read something about adding 7days). If you want try to replace the smart value with just another date. If the rule doesn't succeed, then something else is happening to your workflow.

Sandor Banyai October 18, 2021

I might delete the smart value from the workflow but I think it doesn't make any difference as I don't use it in the calculation of the new DueDate. The thing is, it seems that the value for the due date in step 3 is not giving a true date result. I also tried with PlusDays but it didn't work either.

Alex Koxaras -Relational-
Community Champion
October 18, 2021

Use Log action to capture the value of your smart value. To me it works like charm. Plus the message of your audit log doesn't really indicate that there is something wrong with the smart value.

it works.png

Sandor Banyai October 19, 2021

I completely removed the smart value from the workflow

1.JPG

 

It is all the same. Look like the calculation function doesn't give any result back

2.JPG

Alex Koxaras -Relational-
Community Champion
October 19, 2021

You have a required field, which is due date. And you are not passing any value to that field. Are you sure the name of the field is startdate, and not "start date" (with a space)?

Like Sandor Banyai likes this
Sandor Banyai October 20, 2021

Correct. I did not figure that I need to have the space in the field name.

Thanks a lot for your help. 

Suggest an answer

Log in or Sign up to answer