Can't seem to get the smart value for start date to show a value. I've tried combinations of smart values for {{Start date}}.... issue.startdate, issue.Start date, issue.Start Date,....
When I look at change log, I can get the value using fieldChange.to
ChangeItemBean{fieldId='com.atlassian.jira.plugin.system.customfieldtypes:datepicker', field='Start date', fieldType='null', from='2024-05-29', fromString='29/May/24', to='2024-06-06', toString='6/Jun/24'}
Hi @Trudy Claspill , The root of what I am trying to do is calculate the delta, but that math doesn't work out and the the datedif function doesn't seem to work with the fieldChange values. I tried the basic math, but it spits out -53 when the dates are just 1 apart.
I suspect from your original reply there might be a team project that someone created the field with the same name. When I go to the admin>custom fields Start date is locked as a system field. I would imagine system fields would have it's own unique identifier like a customField_1234, but I haven't found anything on it.
Interesting that only 1 "-" shows up in the first log action, it should be 2
Hello @Matthew
When asking for help with an Automation rule (which I assume you are doing) it will help us to help you if you provide images showing your complete Automation rule and the details of the step where you are having difficulty. Sometimes the issue is the context of the step, or a syntax error, but we can't determine that without seeing the actual rule.
It is also possible that there is more than one field with the same name, and the rule may be having trouble figuring out which of those fields named "Start date" you are trying to reference. In that case you have to find the custom field ID association with the field and reference it by ID rather than name.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, I didn't know there was other places smart values could be used.
The flow:
when field value changes for "Start date",
I can't reference Start date by Id, as indicated from the change log there is no Id associated with the system field. Is there no absolute reference to a system field?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Matthew
Did you review the information available in the Trigger when you created it?
If you want to reference the original value you would use {{fieldChange.fromString}}. If you wanted to reference the new value you can use either {{fieldChange.toString}} or you can reference the field directly from the trigger issue with {{issue.Start date}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your syntax is wrong in the first Log Action. You're missing the second curly brace at the end of the first smart value.
The native "Start date" field actual does have a custom field id. Try following the instructions on this page for printing out all the fields of an individual issue for one of your issues where you have a value set in the field.
https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/
I think if you look through the list of field names that prints at the beginning of the output you'll find a 'customfield_#####' identifier associated with "Start date".
"customfield_10132": "Time to done", "customfield_10014": "Epic Link", "customfield_10015": "Start date", "timetracking": "Time tracking", "customfield_10005": "Change type", "customfield_10006": "Change risk",
Regarding your statement that the "datedif" function didn't work, can you show us the actual statement that you used? I recommend you try this:
{{fieldChange.toString.jiraDate.diff(fieldChange.fromString.jiraDate).days}}
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.