Forums

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

Copying the field value when creating a new issue

Григорий September 14, 2021

Good day!

Please tell me how to create a new request so that the fields from the previous request are copied to the new one.
I would like to do this via script runner.
At the same time, the task was not just cloned, namely, when I clicked on the create request button, the fields were copied from the previous request

1 answer

0 votes
said kouzibry
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.
September 14, 2021

Hi, 

What is the relationship between the newly created request and the one that provides the values ?

At which point of the creation you want to load the values from the previous issue ?

Is it when the creation screen is shown or when you finished entring the creation values and pressed create,

If the first, you can make use of script runner's behaviours to load the values for each field based on an ordered JQL query, this would allow you to edit the values retrieved before the creation and use them in validators

For the second, you can use a Scripted post-function to retrieve the values from the previous issue.

Григорий September 14, 2021

we created a button using the rest api and when you enter your task, there is a button at the bottom, "create a task in this section" and if you click on it, an application form appears, is it possible to fly so that the form was filled out automatically using the application data in which I clicked the button

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events