I want to run an automation that set null value to date field while the tickets get closed.
if the smart values {{null}} works.
I tried it doesn't seem to work?
Hi @radhika
Can you select your field from the dropdown list in the Issue Edit action? If so, try leaving the field empty to clear the value.
If not available in the list and using advanced edit with JSON, try setting the value to null.
Kind regards,
Bill
Thanks Bill, this however doesn't work for me.
my JSON-line looks like this:
...
"actual end": null
...
and the automation runs with "success" but the resulting value is the current date and time rather than an empty or null value.
What am I doing wrong? Do I need some escaping or wrapping "null" with anything?
Thanks for any help!
(I'm using Jira Cloud)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Matthias Rickheit -- Welcome to the Atlassian Community!
Without seeing your entire rule, let's assume some things:
Any of these three methods will work for such fields with the Edit Issue action:
{
"fields": {
"Marketing Date": null
}
}
{
"fields": {
"customfield_10125": null
}
}
If those do not work, please confirm your smart value is correct for the field using this how-to article: https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/
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.
Thanks very much for the quick and precise answer!
The documantation link you provided also proved very helpful. I really appreciate that.
All three methods work just fine technically providing a "SUCCESS" status of the automation I'm running.
However, the "Actual end" date being set is in all cases the current date-time of the run itself.
To give some context: I'm runing this automation to clone an issue that is to be repeated next year. So I need to ...
So I have a workaround for now and yet it would be a lot nicer if I could actually get an empty field there instead of "1970-01-01T00:00:01.0".
Thanks again - best regards,
Matthias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for that additional information, Matthias. For some follow-up questions...
What is the type of your field: date picker, date / time picker, something else?
Is that a custom field you added, or is it from a marketplace addon / app?
Please post an image of your complete automation rule, an image of the clone issue action, and an image of the audit log details showing the rule execution. Those may provide context to help explain this symptom.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @radhika
try setting it to {{clear}} . There was a similar thread suggesting that recently, but I couldn't find it just now.
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.