Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Create a SubTask via JMWE "Create/Clone Issues Post Function"

Ozan Topkaya July 17, 2023

Hi all

By doing a transition, I want to get several issues from project A, into project B under a specific issue as a subtask (sub-test). (Issue link not needed) Unfortunately, I am not getting further. Does anyone have a solution for me. Thanks for your interest.

3 answers

1 vote
David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 17, 2023

Hi @Ozan Topkaya 

in your post-creation script, there's a type: you have 

${issue.getAsString("APV")}

which in not a valid Groovy syntax, you need

issue.getAsString("APV")

(the ${} syntax is only valid within Groovy string constants and Groovy templates) 

0 votes
Ozan Topkaya July 18, 2023

[SWREL-214] Release 2023_R5.0 2 - JIRA Software - INT_2023-07-18_09-05-00.pngHello David

Thank you for the information. Now I am able to create Subtasks.

Still I can't manage to pull the field contents from the source issues. It creates as many tickets as JQL outputs in the script but all without summary, APV and APV Stl. fields. How can I build the connection between main tickets which are in other Project and new subtasks in
in shown project? 

Goal
I want to copy/create all those issues:
project = SWINV AND status in (Aktualisierung, Installiert) AND Plattform-Entscheid in ('CSS Desktop') AND apv = 'p3839'

in project SWREL under one current ticket as a subtask.

David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 18, 2023

Hi @Ozan Topkaya 

Each issue returned by the JQL search (which, by the way, you could simplify using JMWE's jqlSearch global function) is available through the it global variable.

So to copy the Summary of each issue returned by the JQL search to each new issue, you can add the Summary field, select "Set field value to Groovy Expression" and use this value:

it.get("summary")

and repeat the same for other fields you want to copy.

Ozan Topkaya July 21, 2023

Hello David

Thank you very much for your help. Now it is working.

0 votes
Ozan Topkaya July 17, 2023

Arbeitsablaufübergang aktualisieren Create _ Clone issue(s) (JMWE app) Function _2023-07-17_16-36-41.pngArbeitsablaufübergang aktualisieren Create _ Clone issue(s) (JMWE app) Function _2023-07-17_16-37-35.pngFEHLER IM ARBEITSABLAUF - JIRA Software - INT_2023-07-17_16-06-04.png

Suggest an answer

Log in or Sign up to answer