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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to add additional days to an updated custom field on another custom field

Hi All,

I have a custom "Date Accepted" field and "Date completed" field on Jira cloud and will like the Date completed field to be updated with by adding few days e.g 2 days to any value entered in the Date accepted field 

Can anyone help with this?

1 answer

1 accepted

1 vote
Answer accepted
Jack Brickey Community Leader Dec 09, 2020

You can use Automation. Have you attempted this? Here is a link to the docs around working with date fields to assist - smart-values-date-and-time-functions 

Thanks for the update but I did look into the option of automating this however it is not returning the value I need. I tried this but it does not return any value

{{issue.[Date Accepted].plusBusinessDays(10)}}

I want WO ETA value to be the value entered in Date Accepted +10 days

Capture.PNG

Hi @Seun Mustapha -- Welcome to the Atlassian Community!

Please try to remove the square brackets around the smart value:

{{issue.Date Accepted.plusBusinessDays(10)}}

Best regards,

Bill

Like Jack Brickey likes this
Jack Brickey Community Leader Dec 09, 2020

that should do it i think

That works fine. Thank you both

Like Bill Sheboy likes this

When I tried this, the rule was successful but did not change the date as anticipated.

Hi @Celyn -- Welcome to the Atlassian Community!

Please consider posting an image (and/or the smart values) you tried.  That will provide context for the community to offer ideas.  Thanks!

Best regards,

Bill

Hi Bill, we figured it out.  The syntax provided above did not work for us.  Once we changed the syntax to quotation marks the rule worked.

 

{{"Estimate Delivery Date".plusbusinessdays(10)}}

 

image.png

Hi, Celyn. 

I am glad you got it to work...and...I have not seen consistency in automation rules of when the quotation marks around custom field names are needed/not needed.  The fallback when neither seems to work is to use the custom field ID number instead, such as: {{issue.customfield_12345}}

Best regards,

Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Apps & Integrations

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

141 views 1 12
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you