Hello
I try to update the duedate field of an issue by Jira automation like that:
The calculation step (it would be a bit more complex but for simplicity I added a constant):
Update of Duedate:
And the error:
I ask for your help, what did I do wrong?
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)}}
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.
I'm sorry but I still get the error.
I modified it like that:
And got that:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I completely removed the smart value from the workflow
It is all the same. Look like the calculation function doesn't give any result back
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Correct. I did not figure that I need to have the space in the field name.
Thanks a lot for your help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.