Forums

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

Howt to set due dates using smart value

Faith Liu July 23, 2021

for Due date, there are two options, one is to pick a date, the other is to use smart values. I read online on Jira on some examples. However, when I tried the smart value it gave me a error message. This is what I am trying to do. I want the due date to be the fifth business day of each month, the smart value I inputted is {{now.fifthBusinessDayOfMonth}}. I am not sure if this is correct. 

1 answer

1 accepted

0 votes
Answer accepted
Bill Sheboy
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.
July 23, 2021

Hi @Faith Liu  -- Welcome to the Atlassian Community!

I am a bit unclear on what you want to do.  If you do everything relative to {{now}} some of those selected dates could be in the past, right?

And, did you typo "fifth" and mean "first"?  There is no built in function for each day of the month, such as "fifth".  There is a function for the first business day: {{[date].firstBusinessDayOfMonth}}

If you really wanted the 5th business day of the month, even if it was in the past, you could use:

{{now.firstBusinessDayOfMonth.plusBusinessDays(4)}}


Best regards,
Bill

Faith Liu July 26, 2021

Hi Billy, 

 

Thank you very much. Yes, I read on the website, which gave me the first function for the first business day. What I want is the 5th business day of each month. Thank you very much for answering my question.

 

Best regards,

 

Faith

Faith Liu July 26, 2021

Hi @Bill Sheboy,

 

I just tried to smart value you provided, it returned with an error message.

 

Thanks

Bill Sheboy
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.
July 26, 2021

Hi, Faith.  Would you please post:

  • an image of your rule, including the smart value expression you are trying, and
  • an image of the audit log showing the error?

That will provide some context for the community to offer ideas.  Thanks!

Suggest an answer

Log in or Sign up to answer