hello ,
im trying to create a script where it avoids/ deletes if two issues of same issutype is linked.
can i do this using scriptrunner?
Hello @gagan m s
If the user is trying to link an issue to another issue via the create issue form then you can add a check in the validation phase of the create transition and easily avoid linking of the issue types of same type.
Hello @Tarun Sapra ,
its not only during creation, we should be able to restrict at any point of time.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Then you can try using the behaviour modeul of the SR plugin which works on create and edit screen.
def links = getFieldById("issuelinks")
def linkissue = getFieldById("issuelinks-issues")
def linktype = getFieldById("issuelink-types")
And then based on the selection you can check for the issueType and then call setError() on the field
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.