Trying to add value to calculated date field based on value in another field

We have the JIRA Misc fields plugin calculated date field. 

 

If the user chooses SLA1 on custom field 15401, for instance, I want the calcualtated date field (15402) to be current date +7 but clearly I'm doing something wrong and I'm stumped. Halp!

This is what i have:

 

<!-- @@Formula: 

if (issue.get("customfield_15401") == "SLA1")
return issue.get("customfield_15402").getTime() + 7);

else if (issue.get("customfield_15401") == "SLA2")
return issue.get("customfield_15402").getTime() + 14);

else if (issue.get("customfield_15401") == "SLA3")
return issue.get("customfield_15402").getTime() + 21);
-->

 

Thanks!

1 answer

This widget could not be displayed.

One other wrinkle I forgot to add: the Admin Helper on issues created with this field present is now missing the "Where is my field" option. It it's stead is an "Add field" option and when I attempt to add the field, it gives me a message telling me that I don't have permission to edit which is clearly false.  Strange

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

100 views 1 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you