I was using Misc Workflow Extensions add-on v2.5.5.2 on JIRA OnDemand and it has a post function to clear field value. Now, I am switching to JIRA Download version and the add-on has a newer version of 3.3.0 but I couldn't find this post function to clear field value.
How should I do it instead?
The Clear Field Value function was never part of the JIRA Misc Workflow Extensions plugin, but of another plugin.
But you can achieve the same results with the "Set Field Value" function, by selecting "Groovy" as the value type, and "null" as the value.
@David _old account_, sorry for the newbie question.
I'm using MISC and trying to set remaining estimate to "Not specified.
Precondition
Before resetting my Remaining time is "Not specified". I need to clear remaining time after logging (like you create the issue).
My steps to add post function into flow:
1. Add post function
2. Choose "Set Field Value"
3. Choose "Remaining Estimate"
4. Set value. Here I've tried, but failed:
- just left empty
- {{ null }}
- {{issue.fields.remaining.estimate == null}}
- {{issue.fields.remaining == null}}
But nothing help :(
What shall I fix to clear remaining estimate?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Simply put: you cannot. Jira will never show "Not specified" once you've input time estimates. If you set the value to empty, it will clear the remaining estimate but Jira will show it as 0 minutes left.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually, my colleague helped to overcome the issue via Jira Misc :)
In order to reset Original & Remaining estimate we shall do:
1. Add post function
2. Choose "Set Field Value"
3. Choose "Time Tracking"
4. Put into value
{
"originalEstimate": null,
"remainingEstimate": null
}
5. Choose option - Treat value as json
6. Set 2 sec delay to be sure that executes correctly
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Good! However, it also clears the original estimate, but if that's ok with you, it will indeed work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I just left the condition blank and it clears out my value. Just dont put anything in the groovy template value. I guess that serves as null. I am using this to clear "pending reason" field when it transitions back to not pending anymore.
of course this may not work for all cases...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
in that case what was the plugin with "Clear field Value"?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Possibly Suite Utlisites for JIRA (JSU).
Their documentaton page about the Clear Field Value Post-Function is here:
https://confluence-addons.beecom.ch/display/JSU/Clear+Field+Value+Post-Function
JSU used to be bundled with JIRA Cloud (formerly called OnDemand).
Atlassian removed JSU around May 2017, but retained native support for the extra post-fuctions it provided (including "Clear Field Value").
Read about that in Dave Meyer's post here:
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.