Versions Compared

Key

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

Custom JavaScript is able to be applied to Subactions within the Work Flow. This is useful for applying custom functionality to a value based on the action performed.

Instructions

  1. Select the Module link in the top left banner, from the Module list select the module for which the field is being Mobile Link enabled.
  2. Select the Wofkflows tab within the Module settings, then select the Actions tab.
  3. Select the action for which the Custom JavaScript Subaction is to be added, then the Subactions tab.
  4. After defining the condition for the Subaction, select the field for assignment from the left.
  5. On the right side of the assignment statement to execute Custom JavaScript the text but me wrapped by '{' an opening and closing brace '}'
    (Note: Variable references can be used within these braces in a similar fashion to other Custom JavaScript (Example - "%(customString1)%")) 

...

Info
If the goal were to increment a value already in a field each time an action was performed the code below would achieve this.

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@8fc
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "kb-how-to-article" and type = "page" and space = "HD"
labelskb-how-to-article

...