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.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Start date automation

Alice Mason
Contributor
March 11, 2025

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.

Screenshot 2025-03-11 113758.png Screenshot 2025-03-11 113709.png Screenshot 2025-03-11 113647.png I get a success in the audit log however, the start date has not been updated.

Please help!

3 answers

1 accepted

4 votes
Answer accepted
Dirk Ronsmans
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 11, 2025

@Alice Mason ,


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.

Alice Mason
Contributor
March 11, 2025

Thanks that's helpful!!
Screenshot 2025-03-11 141243.png

Dirk Ronsmans
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 11, 2025

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

Alice Mason
Contributor
March 11, 2025

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 

Dirk Ronsmans
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 11, 2025 edited

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

Like Dez-Luan likes this
Alice Mason
Contributor
March 11, 2025

{{issue.customfield_xxxx.startDate}} worked, thank you so much!!!!! 

Like 2 people like this
Dirk Ronsmans
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 11, 2025

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.

Like Dez-Luan likes this
0 votes
Dez-Luan March 11, 2025

@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".

Alice Mason
Contributor
March 11, 2025

Same issue - I get a success in the audit log but the start date is not changed in the issue or on my roadmap 

Dez-Luan March 11, 2025

Might we worth adding another action to log the step to print out the 

{{issue.fixVersions.startDate}}

value . 

0 votes
Vishal Biyani
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 11, 2025

@Alice Mason 

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

Alice Mason
Contributor
March 11, 2025

Yes I think it is a custom field - I get an error with the URL (replacing instance URL and issuekey)

Alice Mason
Contributor
March 11, 2025

Ah I have both Target Start Date and Target start - maybe that's the issue?Screenshot 2025-03-11 123726.png

Alice Mason
Contributor
March 11, 2025

Added both to the screen and still not showing :( and still getting success in audit logScreenshot 2025-03-11 124703.png

Vishal Biyani
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 11, 2025

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?

Alice Mason
Contributor
March 11, 2025

What should issue key be?

 

Vishal Biyani
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 11, 2025

based on the SS, it could be ADM-36

Alice Mason
Contributor
March 11, 2025

Screenshot 2025-03-11 140710.png

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, ace, atlassian community event, donation, girls who code, women in tech, malala fund, plan international, kudos, community badge, badge, atlassian badge, International Women’s month, International Women’s Day, women's month, women's day

10 for Change at Atlassian Community Events

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!
AUG Leaders

Upcoming Jira Events