1MR commited on
Commit
63e5382
·
verified ·
1 Parent(s): 5229c45

Delete uploaded numbered files

Browse files
322-link-sub-task-s-of-current-ticket-to-new-ticket-in-create-clone-issue-s-jmwe-post-function.md DELETED
@@ -1,37 +0,0 @@
1
- # Link sub-task s of current ticket to new ticket in Create Clone issue s JMWE post-function
2
-
3
- > المصدر: https://appfire.atlassian.net/wiki/spaces/JMWE/pages/461472778/Link+sub-task+s+of+current+ticket+to+new+ticket+in+Create+Clone+issue+s+JMWE+post-function
4
-
5
- ---
6
-
7
- This article explains how to link sub-tasks(s) of the current ticket, if any, to the new ticket in [Create / Clone issue(s) (JMWE)](https://appfire.atlassian.net/wiki/spaces/JMWE/pages/78054650/Create+Clone+issue+s "https://appfire.atlassian.net/wiki/spaces/JMWE/pages/78054650/Create+Clone+issue+s") post-function.
8
-
9
- ## Instructions
10
-
11
- 1. In Jira Administration, go to **Workflows** and click the **Edit** link of the desired workflow to open it.
12
- 2. Select the required transition.
13
- 3. Select the **Post functions**tab and click **Add post function**.
14
- 4. Select the “Create / Clone issue(s) (JMWE)” post-function and click **Add**.
15
- 5. Fill in the required details.
16
- 6. Under the **Post-creation script** section, select the checkbox **Run a Groovy script after the issue is created** checkbox and then enter the following in the **Post-creation script** text box:
17
-
18
- `for(subtask in issue.subTaskObjects)
19
- newIssue.linkIssue("is blocked by",subtask)`
20
-
21
- Note: You should replace “is blocked by” with whatever link type you wish to use.
22
-
23
- When the transition is executed on a ticket, a new ticket is created with your configured details and then linked to the sub-tasks of the current ticket (if any).
24
-
25
- Open
26
-
27
- ![](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
28
-
29
- ### References
30
-
31
- - [issue variable](https://appfire.atlassian.net/wiki/spaces/JMWE/pages/78055921/Variables+used+in+a+groovy+expression "https://appfire.atlassian.net/wiki/spaces/JMWE/pages/78055921/Variables+used+in+a+groovy+expression")
32
- - [Accessing the fields of an issue](https://appfire.atlassian.net/wiki/spaces/JMWE/pages/78055905 "https://appfire.atlassian.net/wiki/spaces/JMWE/pages/78055905")
33
- - [newIssue variable](https://appfire.atlassian.net/wiki/spaces/JMWE/pages/78054650/Create+Clone+issue+s#Post-creation-script "https://appfire.atlassian.net/wiki/spaces/JMWE/pages/78054650/Create+Clone+issue+s#Post-creation-script")
34
- - [linkIssue method](https://appfire.atlassian.net/wiki/spaces/JMWE/pages/78055970/Issue+Interface#Methods-to-link-issues "https://appfire.atlassian.net/wiki/spaces/JMWE/pages/78055970/Issue+Interface#Methods-to-link-issues")
35
- - [Create / Clone issue(s) (JMWE app)](https://appfire.atlassian.net/wiki/spaces/JMWE/pages/78054650/Create+Clone+issue+s "https://appfire.atlassian.net/wiki/spaces/JMWE/pages/78054650/Create+Clone+issue+s") post-function.
36
-
37
- ## Related articles