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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to detect in a the Create transition's post function if this is cloning operation Edited

I would like to set fields to different values in a Scriptrunner custom script if this create is the result of a cloning. Also, how can I access the fields of the cloned issue?

1 answer

Hi Sandor,

There will be nothing special to the issue that will be created via a clone issue and link post function. 

What you can do tho, in order to recognize it, is to set the summary of the cloned issue into something like Cloned <and a summary> or add a label to the cloned issue - in that case you have to make use of the doAfterCreate closure in the additional actions field of your Clone issue post function.

Regarding your second question, how to access the fields of the cloned issue, if you create a custom post function and place it after the create issue step then you can get the summary of the new issue like 

issue.summary

Please let me know if you have any further questions. 

regards, Thanos

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you