Our new Appfire Documentation Space is now live!

Take a look here! If you have any questions please email support@appfire.com

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

This article provides the code snippet to unselect an option in a multi-select field using Set issue fields post-function.

\uD83D\uDCD8 Instructions

  1. Navigate to the intended workflow to make the necessary changes in the edit mode.

  2. Select the required transition.

  3. Select the Post functions tab and click Add post function.

  4. Add the Set issue fields post-function.

  5. Select the issues, for which the field should be set, under “Target Issue(s)”.

  6. Select the desired field and add the below Nunjucks template:

    {{ issue.fields.customfield_10067 | filter(["value","Item 3"],true) | join(',',"value") }}

Replace 10067 with the id of the desired field and Item 3 with the option to be removed.

With this, the option “Item 3” will be removed from the selected options (if it exists).

If this post-function is added on the create transition, select the checkbox “Delay the execution of this post-function” under “Delayed execution” and select a delay of 3 seconds.

References

  • No labels