Clear Field Value

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?

4 answers

1 accepted

This widget could not be displayed.

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 [Innovalog], 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?

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.

Hi @David Fischer [Innovalog]

 

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

reset rem_or est.png

Good! However, it also clears the original estimate, but if that's ok with you, it will indeed work. 

This widget could not be displayed.

It works, thanks a lot!

This widget could not be displayed.

in that case what was the plugin with "Clear field Value"?

Sam Hall Community Champion Sep 05, 2017

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:

https://community.atlassian.com/t5/JIRA-Core-questions/Why-is-JIRA-Suite-Utilities-disabled-on-JIRA-Cloud/qaq-p/368253

This widget could not be displayed.

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...

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

514 views 3 18
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you