Versions Compared

Key

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

...

  1. 10043 in line #1 with the ID of the "User Picker (single user)" custom field [the user selected in this field will be added to the Jira group]

  2. ABC in line #3 with the base URL of your Jira Cloud instance.

  3. XYZ in line #3 with the ID of the Jira group to which you want to add the user. You can easily get the group ID using Lookup group… feature of Nunjucks Template Editor.

  4. XXXXX in line #9 with your API token - check this.

...

Info
  • The above script uses callRest JMWE Nunjucks filter and this Atlassian Jira Cloud REST API.

  • This Nunjucks code can be added in JMWE post-functions (that can be added in workflows and JMWE Actions: Event-based or Scheduled or Shared Actions)

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

 

References

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@bc3e0baf
showSpacefalse
sortmodified
typepage
reversetrue
labelskb-how-to-article
cqllabel in ( "nunjucks" , "jmwe-cloud" , "nunjucks-script" , "nunjucks-template" , "jmwe-postfunction" , "nunjucks-filters" ) and type = "page" and space in ( "SUPPORT" , "JMWEC" )