Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×I've set up a couple of automations to update start date based on the target fix version's start date. One for when an epic is created and another for when target fix is edited.
I get a success in the audit log however, the start date has not been updated.
Please help!
A quick troubleshooting tip would be to add another action in the automation for "Log to Audit log"
If you add the smart value there, you can see if it actually contains something.
If not, the automation will still work and say it edited something but edit would be to an empty value.
At least that way you can confirm whether the issue is with getting the value or setting it on the issue
Also, adding a re-fetch issue data before getting the value is a good practice to make sure you have the last data from the issue not some cached content.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So it does look like the smart value is not containing anything.
Since targetFixVersions is not a default system field (unless you ment to use fixVersions?
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--issue.fixVersions-- ) you will need to use the format of
{{issue.customfield_xxxxx.property}}
What type of field is the targetFixVersions field? Just trying to make sure you're not accidently using the wrong field here and it should be fixVersions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm definitely trying to use Target Fix version. Type: Version Picker (single)
I've updated to use the customfield format but Target Start is still empty and I'm still getting a success in the audit with the smart value still showing as empty
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Considering then that is is a specific custom field please try using the format
{{issue.customfield_xxxx}} and if that returns something you can try {{issue.customfield_xxxx.startDate}}
we need to know if the field itself already has a value before getting the properties of the field.
be sure of course to replace customfield_xxxx with the proper customfield id
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
{{issue.customfield_xxxx.startDate}} worked, thank you so much!!!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Great! Something to keep in mind that if the field is not a system field (one that came with the product) the best approach is to use the customfield_xxxx format.
Also if you have 2 fields with the same name that would distinguish them from each other.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Alice Mason I believe the correct smart value is:
{{issue.fixVersions.startDate}}
Also, your "Target Start Date" must be of the format "yyyy-MM-dd".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Same issue - I get a success in the audit log but the start date is not changed in the issue or on my roadmap
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Most likely the issue is how you are accessing the field value.
Is TargetFixVersion a custom field in your jira instance? Are you sure it has startDate?
Can you check the available values by using the URL and share what you see for TargetFixVersion?
https://<yourinstanceurl>/rest/api/3/issue/<issuekey>?expand=names
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes I think it is a custom field - I get an error with the URL (replacing instance URL and issuekey)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah I have both Target Start Date and Target start - maybe that's the issue?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Added both to the screen and still not showing :( and still getting success in audit log
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That URL shouldn't give error. Can you recheck?
Also, the issue is not with Target Start Date. The issue is how fixVersions is being accessed.
As you are using a custom field, Target Fix Version, it is important to see the o/p from above URL.
How can you confirm the Target Fix Version only accepts 1 value?
if it accepts multiple, then what would be the business rule for deciding which date to pick?
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.
based on the SS, it could be ADM-36
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.
Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!
Join an Atlassian Community Event!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.