Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Date manipulation scenario

I am trying to calculate an Estimated Delivery Date based on a Planned Start Date and a team's weekly Throughput.  I put the smart-value formula below and it does not work.

{{issue.Planned Start Date.plusdays(7/{{issue.Throughput}})}}

If I remove the Throughput part and just have and hard-coded value it does not work either.

{{issue.Planned Start Date.plusdays(7/1)}}

 

So I can conclude plusdays can only take a single value as a parameter.  Is there any way to accomplish what I am trying to do?

3 answers

I have the same issue. Did you have any other workaround to add the original estimate to the Start date to calculate the End date?

Hi Robert,

You are correct, as the "plusdays" function doesn't allow more than one value as parameter.

To help us figure out what might be going on. Can you send through screenshots of:

# the rule you're having issues with
# the audit log of the result of the rule

Also, can you please tell us more about the Throughput field. Is it a date type field or is it a number type field?

Thanks,

Victor

Throughput is a number field.  I tried just putting the field (that represents a number) as the parameter to plusdays and that did not work either.  So it looks like plusdays can only take an actual number as a valid parameter?

Error:

Edit issue

Error rendering smart-values when executing this rule:Failed to get value for issue.Planned Start Date.plusdays({{issue.Throughput: {{issue.Planned Start Date.plusdays({{issue.Throughput}})}}

Robert,

Thank you for your reply.

It is not currently possible to add math formulas into the plusdays function, as it only accepts numbers as parameters.

We raised a ticket for this enhancement (AUT-1473). This effectively counts as a vote for this issue. You'll get notified on this support ticket when the issue has been resolved and released to server and cloud. (Due to a [bug in Jira Service Desk|https://jira.atlassian.com/browse/JSDSERVER-1367] you might need to open the linked issue in an incognito window to see it).

Cheers,

Victor

Hi Victor,

I would also like to vote for this also, as I have just spent about 4 hours learning smart-values so that I can add business days to a date field only to find out that it only seems to be able to accept a hard coded value in the automation.  Is this correct?  If it is, I am struggling to think of any real world scenario when this would be useful.  In all examples that I can think on, I want to calculate the days to add based on other fields or some other logic.  Am I missing something?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

New Cloud Apps Roundup - Spring 2021

Atlassian's marketplace partners have had a very productive start to 2021! Since our last roundup, our developer community has added over 160 new cloud apps to the Atlassian Marketplace to help you...

231 views 3 20
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