You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Is it possible to use a variable or a custom field when formatting the date, e.g.
{{now().plusHours({{"customfield_10286"}})
Instead of a constant value in the plusHours () function I need to be able to use a variable from a field such as a numeric or a drop-down list, that's all.
If possible, please give me an example and syntax.
While browsing this thread, I have doubts if it is possible here
Calling the expert - @Bill Sheboy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Kamil Blicharski and @John Funk
I note you are trying to nest the smart values and wrap a number with quotation marks, which could be part of the issue. Depending upon your custom field type, maybe try this:
{{now().plusHours(issue.customfield_10286.asNumber())}}
If that does not help, what problem are you trying to solve? Knowing that may reveal alternative solutions.
Best regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kamil - please make your responses in the same thread here so that future readers can follow the conversation.
Did you try the syntax provided by Bill above?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Instead of a constant value in the plusHours () function I need to be able to use a variable from a field such as a numeric or a drop-down list, that's all.
If possible, please give me an example and syntax.
While browsing this thread, I have doubts if it is possible here
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
With automation rules, it is not yet possible to use a created variable as a parameter to a function. If you just need to use a field from the issue, that does work. Please see the example I provided.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Would it be possible to use the syntax the other way around? So instead of using now to solve a math expression, I would would want to use a custom field as input.
Example: {{issue.customfield_100xx.minusBusinessDays(3)}}
In which my custom field would represent a delivery date (arrival at customer) and the output would be my due date (departure for transport).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Yannick Roethof - Welcome to the Atlassian Community!
Sure, you can do that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.