Forums

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

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

Mark Brodbeck January 22, 2020

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

0 votes
Mark Brodbeck January 23, 2020

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