The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Set project target interval

Omar Bennani
Contributor
May 10, 2023

Hi! I'm trying to set the project target (the Project Target field) intervals using automation but I'm hitting a bit of a snag. It's a custom field that's looks like it's defined as a string but obviously takes a start and end date. Can anyone provide an example or tips on how to set the value properly? 

Thanks!

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
Answer accepted
Omar Bennani
Contributor
May 11, 2023

Figured it out for my self! So here's what you need to do. Must be an advanced update. In our instance it's customfield10275. It must be a string and you need to match the structure. You also need to match the expected dates. For instance, i tried doing a custom start/end interval. That's no bueno, it won't take it. If you want to assign a start/end as i do below for quarters, you need to align the dates to be the exact same and the it'll take it.

{
"update":{
"customfield_10275": [{
"set": "{\"start\":\"{{now.StartOfMonth.withMonth(1).jiraDate}}\",\"end\":\"{{now.withMonth(3).endOfMonth.jiraDate}}\"}"
}]
}
}

TAGS
AUG Leaders

Atlassian Community Events