Page tree

Contents

Description

The 'Clear Field Value' post-function clears the value of a specified field, after a transition has been completed.

Configuration

You must specify the field to be cleared. For example:


For information on how to configure a post-function in JIRA, see the JIRA documentation.

Precondition

There are several ways in which preconditions can be evaluated in the context of a post function:

  • Ignore precondition (By default every precondition is ignored. It means that post function will be always performed)
  • True (Precondition must be true to execute a post function)
  • False (Precondition must be false to execute a post function)

You can find more generic description of precondition here


Position of the Post Function

It is important to place the post function in the correct order of other post functions.

Create Transition

(info) The 'Create' transition is the very fist transition, which does not yet has a source status (only destination status - usually Open, but could also be another).

Instead of using the "Clear Field Value" post function in the Create transition, you might consider to just configure no default value for that custom field and don't show it on the create screen.

If you are using the "Clear Field Value" post function in the Create transition, you must put it after the "Creates the issue originally." but before the "Re-index an issue to keep indexes in sync with the database." post function.

Any other Transition (not Create)

Put the "Clear Field Value" post function anywhere before the "Update change history for an issue and store the issue in the database." post function


Example

A workflow is configured so that the 'Close' transition has the 'Clear Field Value' post-function. The function is configured to clear the 'Security Level' field. If a user closes an issue on this workflow, the value of the 'Security Level' field will be cleared.

Supported Field Types

In its different modules (especially those for workflows), the JSU app supports many different field types. System fields, as well as custom fields.

However you should be aware, that not all field types are supported. Also not in all combinations. We think we cover the most important field types and still are continuously adding and improving which and how different field types are supported. But the one you need, might just not (yet) work. Some custom fields of other third party app might never get supported.

For that reason you should always test anything you do with the JSU app with fields. Before you buy a license for JSU, try it with a free evaluation license, if it works for you.