I have tasks transitioning from one stage of work (status) to the next, and along with this I need to add, for example 3 days to already set due date automatically.
I've added the action edit due date and tried smart values such as {{now.plusBusinessDays(3)}} {{issue.duedate.plusBusinessDays(3)}} {{issue.created.plusBusinessDays(3)}} but none of them work. I also tried adding conditions like due date is not empty. I also always add a condition to specify issue type. And I always get one error in the log (the field due date is available in the work types)
Is there a solution to my needs?
Hi @Olesia Zhukova -- Welcome to the Atlassian Community!
Adding to the suggestions from others...
There are several additional possibilities for that rule symptom. Unfortunately, the messages in the audit log do not always match the root cause. Please check the following:
#1) Who is the rule actor in the details at the top of the rule?
The default is Automation for Jira, and that user should have the permissions needed for the rule. If someone changed the actor, why did they do so? I believe changing the Due Date requires the "Scheduled Issue" permission, and perhaps a different user does not have that one.
#2) Are there multiple fields named "Due Date" in your project?
When using a team-managed project, it is possible to add a field which collides with the same name as the built-in field. If this is the case, please work with the project admin to learn why that field was added and consider removing it.
#3) The Due Date field is a date only field, and many of the smart value functions use date / time by default. You can enforce setting the field correctly by truncating the time part when setting the field:
{{issue.duedate.plusBusinessDays(3).jiraDate}}
Kind regards,
Bill
Here's the details
And the due date is created by another rule. When the task is created.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Welcome to Atlassian Community!
The error you get in the audit log indicate that the due date field is not on the screen used by the work item. Automations can only change fields that are on the screen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I know right, but it's on there and I already have a rule working to create a due date when the task is created.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
could you please also send a screenshot of your rule to see how the edit actions are configured.
Furthermore as far as I know it´s not possible to edit the created date as this is a hard written date (often used for revision) by jira.
Thanks in advance.
Best
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for responding quickly!
My rules look like this mostly.
And yeah I found someone with a similar problem on here, but the date was 2015 so I thought things must've changed
Thanks,
Olesia
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the screenshot it only shows one closing } . But I guess this is only hidden by the end of the field.
Furthermore could you please send another screenshot of your rule details? Who is the actor of this rule in the details? Does that user have the permission to edit the the due date /schedule a work item?
Did you configure the manipulation of the create date in another rule?
Best
Stefan
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.