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 issue in Create / Clone issue(s) (JMWE app) post-function.

\uD83D\uDCD8 Instructions

  1. Navigate to the intended workflow where you wish to make the necessary changes in the changes and switch to edit mode.

  2. Select the required transition you wish to edit.

  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 your required details.

  6. Select Under the Post-creation script section, select the checkbox “Run Run a Groovy script after the issue is created” under “Post-creation script” and add the below “Postcreated checkbox and then enter the following in Post-creation script text box:

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

Replace relates to with the desired link name.

With thisNote: You should replace “relates to” with whatever link type you wish to use.

Now, when the transition is executed on the sub-task, a new issue is created with the your configured details and then linked to 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