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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.