Versions Compared

Key

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

This article explains how to link the parent of the current sub-task to the new ticket in Create / Clone issue(s) (JMWE app) 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 “Create / Clone issue(s) (JMWE app)” post-function.

  5. Fill in the required details.

  6. Select the checkbox “Run a Groovy script after the issue is created” under “Post-creation script” and add the below “Post-creation script:”

    Code Block
    languagegroovy
    if(issue.parentObject)
    	newIssue.linkIssue("relates to",issue.parentObject)

...

With this, when the transition is executed on the sub-task, a new issue is created with the configured details and is linked to the parent of the current sub-task's parent.

...

References

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@22cf51
sortmodified
showSpacefalse
reversetrue
typepage
cqllabel in ( "kb-how-to-article" , "create-issue-postfunction" , "link" , "link-issues" , "groovy" , "script" , "jmwe-server" , "jmwe-groovy" ) and type = "page" and space = "JMWE"
labelskb-how-to-article