I have a custom field (resolved with customer) automation set as a workaround for SLA as we measure two different types of SLA. I cannot purchase any apps in marketplace, if there are any
free apps I am more than happy to look into them.
I have a number field set to hold the days
Automation is as follows:
Field Value changed is set for my custom field
Edit issue is where the number field is and I have {{issue.customfield_xxx.diff(created).days}} in the options
Based on the audit log it is running successfully but the day number is not displaying in the number field.
Would you please post images of the details of your issue edit action and of the audit log details for the rule? Those may help explain what you are observing.
Also, what do you see if you write that value to the audit log directly with the log action?
Kind regards,
Bill
I have a custom number field that will hold the automated number - I attempted to mirror my current SLA automation.
This is the automation in question. When a peer selects either value in the Resolved with Cx field I would like to see the number of days between Created and when a value is selected - unsure if it can only calculated date fields vs value
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is the automation I mirrored - in the screenshot below you can see the number for this automation but not the Resolved with Cx field
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you write the custom field and the expression to calculate the date difference directly to the audit log in the rule, what do you see?
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.
Yes, like that. Also try writing just {{issue.customfield_19022}} to the log. Then run your rule and post an image of the audit log details. Thanks!
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.
This seems to indicate the smart value expression is the cause. Let's try to write just the field to the audit log:
{{issue.customfield_19022}}
That will confirm if it contains what you expect before using the diff() function on it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Cristina Carrillo ,
You may need to check the data type of the Custom Field that you are using. It may not accept the value if it's mismatched or negative value.
Try adding abs {{issue.customfield_xxx.diff(created).days.abs}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you @Benjamin - however I am still not seeing the number being displayed - I have added the abs. Auditlog shows the automation is running successfully.
{{issue.customfield_19022.diff(created).days.abs}}
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.