Hey there,
I need to pass smart value in Jira Automation for it to set a date field based on the below conditions:
If customfield_10206 <= now.startOfMonth Then now.startOfMonth
Else now.plusMonths(1).startOfMonth
Is it possible to achieve this in smart values?
Here is the rule.
Use less than for your requirements
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Without seeing your complete automation rule for context, I believe there are at least 2 ways to do this: use if/else conditions or use conditional, smart value expressions.
What have you tried thus far to solve this?
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is already part of another if/else statement within automation. I would like to use the smart value expressions, but I can't get it to work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I believe that is possible with a conditional, smart value expression: https://confluence.atlassian.com/automation/jira-smart-values-conditional-logic-1081351607.html Such conditions only have "true" cases, not if/else, and so two expressions will be needed or you can combine this with a math expression: https://confluence.atlassian.com/automation/jira-smart-values-math-expressions-993924866.html
Please post images of what you have tried, and explain what is not working as you expect:
Those will provide context for the community to offer suggestions.
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.