Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Clone Issue set target project

Sema YILDIRIM
Contributor
May 11, 2020

How to create the issue with "Clone Issue" according to the "customfiled" information selected in "Trasntions"?

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 11, 2020

You don't.

Clone does what the word suggests - it creates a copy of the issue being cloned.  There's no conditions or editing or changes, it simply creates a copy.

Sema YILDIRIM
Contributor
May 11, 2020

When we say "Post Function" clone issue, it creates issue in the project I define as target project. According to the condition I want to determine the target project. Can you help me please?

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 11, 2020

Again, clone simply creates a copy.  There are no functions for choosing arbitrary data to change on the copy

Sema YILDIRIM
Contributor
May 11, 2020

How can I create an item in the project according to the "custom field" I selected?

Sema YILDIRIM
Contributor
May 11, 2020

Can I set "project id" with "post function" while "Issue create"?

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 11, 2020

No, the issue create process can only start after you've given it a project and issue type.

You can't create an issue from the data in a custom field natively.  You can do it with code, but that code will need to work out what project and issue type to create from the custom field data.

Sema YILDIRIM
Contributor
May 11, 2020

Firstly, thank you. I have a "select list" field with project names. When I click on "transtion" I want to create an item in the project according to select list information. Can you share sample code?

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 12, 2020

There's a number of "create issue when" scripts in the Adaptavist script library, over at https://library.adaptavist.com/search?term=create%20issue

Some of these are good examples for creating issues automatically, and are a good guide for coding in general, as they easily translate into code you could put in your own apps.

Sema YILDIRIM
Contributor
May 12, 2020

thank you :)

Suggest an answer

Log in or Sign up to answer