Hello, I need to create an automation so when a ticket is transitioned from a Status "W problem" to another one, sum the days the ticket was in that status to the current value of the field "due_date", but is not working, can someone help me?
This is the automation:
{{Time in W Problem.days}}
{{issue.dueDate.plus(daysinWP, "days")}}
I've tested to send the value of the variable via email and is empty, how can I know the days a ticket is in a concrete status?
Thanks in advance.
Hi @Sara
Neither of the syntaxes you show are valid for smart values for date / time functions:
For the scenario you describe, I can think of two ways to get the number of days a work item has been in a status with automation rules, both of which have limitations:
Another approach is to investigate marketplace apps which better support querying the changelog directly, although I have no recommendations for any of those.
Kind regards,
Bill
HI @Sara
Whenever you ask for help with an Automation Rule it will help us to help you if you provide:
1. what type of project is this (e.g., company-managed, team-managed, etc.),
2. images that show your complete rule.
3. images showing the details of any relevant actions/conditions/branches.
4. images showing the Audit Log details for the rule execution.
5. Explain where the issue is.
These questions are not for not willing to help, but to have community members understand on how automation works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Project type: Software project
The email received is: "Value for variable daysinWP:"
Content defined in the rule: "Value for variable daysinWP: {{daysinWP}}"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Sara
On adding a log action on the custom field, I think you smart value is wrong.
If you use {{issue.Time in Webshop Problem.days}}, or {{issue.customfiield_xxxxx.days}} what is the result.
Where xxxxx is de id of the custom field.
What kind of field type is this field, number or date?
Also see this KB for a solution, get-the-amount-of-time-a-jira-issue-was-in-a-status-using-automation
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.