Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Updating target/end start date from Fix Version

Brian Gauthier February 22, 2024

I'm looking to create an automation that updates the target start and end dates based on the release fix version.   I've found a way to do this for Start Date and Due Date, but for Target Start -- there is not a solution that I see works.  What I'm using now is the following 

{
"update": {
"Target Start": [
{
"set": {{issue.fixVersions.releaseDate.min}}
}
]
}
}

1 answer

0 votes
Kalyan Sattaluri
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.
February 22, 2024

Hello @Brian Gauthier  

 

You were missing quotes, please try below:

{
"update": {
"Target Start": [
{
"set": "{{issue.fixVersions.releaseDate.min}}"
}
]
}
}

 

Also just FYI, When trying to do update with set, you can directly use fields attributes instead.

So below is the shortcut version for the same and should do the same.

 

{
"fields": {
"Target Start": "{{issue.fixVersions.releaseDate.min}}"
}
}

Brian Gauthier February 22, 2024

Great - That worked.   In a separate project - I'm also trying to update a target state based on the start date.   The error I get is that its in a incorrect format.   Here's the automation code I'm using and is not working.

 

{
"fields": {
"Target Start": "{{issue.StartDate.jiraDate}}"
}
}

Kalyan Sattaluri
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.
February 22, 2024

Hi @Brian Gauthier 

Please check that the field is spelled correctly. Is there a space between Start & Date? Also, I dont think you need the .jiraDate modifier. Please try below and share the audit log of the error if it happens.

 

{
"fields": {
"Target Start": "{{issue.Start Date}}"
}
}

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events