Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you are a project administrator or a system administrator, then move your mouse over the name to display additional buttons: edit the group sign-off field definition as well as revert all decisions to re-start a decision, loosing all previous votes:

This needs no longer a complex set-up and should make administrator's life much easier.

No longer supported functions:

  • revertMyDecisions (no longer supported and replaced by "optionUndo=true")
  • revertAllDecisionsĀ (no longer supported and replaced by a button)

to rollback previous decisions triggered by a workflow transition e.g. into the same status (keep status unchanged but offer a related button for the user as action).

  • Multimedia
    nameBildschirmaufnahme 2022-03-24 um 17.25.54.mov
    width53%
    autostarttrue
    height53%

...

Code Block
// "Revert Sign-Off" is customfield_xyz;
if (issue["customfield_xyz"] == "revert approvals")
{
	// first, clear the control-field "Revert Sign-Off" to avoid further launches while processing the functions below
	issue.update("customfield_xyz" , "");

	// second, execute the revert-functions you need
	issue.revertAllDecisions("<group sign-off fieldname-1>");
	issue.revertAllDecisions("<group sign-off fieldname-2>");	
}

...

Explanation:

Clicking on transition "revert decisions", the configured constant value will be put into that issue's custom-field. Displaying this issue, the configured rule will be executed upfront: if the related custom-field contains this special constant value, all decisions of the specified group sign-off property are reverted via the helper-function. Afterwards, the constant value needs to be reset back to empty ("") in order to omit additional reverts while loading next time.

By default, all reverting actions are documented within the issue's history for transparency.

If you want to omit writing such comments, please add false as a second parameter to all calls to revertAllDecisions() and revertMyDecisions() as shown on the screen copy below:

Image RemovedIf you have configured using these functions before, deconstruct that: please edit your global "Rule" and remove all code checking the "internal control field" triggering calls to these functions. Also, the customfield "internal control field" is no longer needed and can be removed/deleted. Finally, please remove all your workflow transitions explicitly used to set the content of the this internal control field.