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

Scriptrunner Behaviour: Detect if I´m creating, editing or cloning an issue

Hello all :)

 

Is it possible to detect within a behaviour if I´m on the Create Issue, Edit Issue or e.g. Clone+ screen? The behaviour should only work on one of these. Unfortunately I found nothing in the scriptrunner docu...

Thank you very much!

1 answer

I tried to mark a field as "clone" with the clone+ plugin. Now I try to only execute my behavior if the field contains this mark.

 

am I doing anything wrong?!

def sum = getFieldById("summary").getFormValue()

if(sum.contains("Clone"){

//do something

}

 

it seems like the variable remains emtpy. Does anyone has a clue?!

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