Forums

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

IF/ELSE Script-Runner Script for Custom Field Jira issue Create

장부현 February 16, 2023

Hello.

In my case, it is proceeded when jira issue is created.

For example

Jira issue Field

1#Custom_Field : User Picker (single user) << Field Required

2#Custom_Field : User Picker (single user)

Q1.

If the 2#Custom_Field value is included, Change Assignee(2#Custom_Field) and

Go to Jira's specific status

Q2.

If the 2#Custom_Field value is Not included, Change Assignee(1#Custom_Field)

 

I don't know how to implement it using Script-Runner.
Can I help you?

1 answer

0 votes
Fabio Racobaldo _Herzum_
Community Champion
February 17, 2023

Hi @장부현 and welcome,

you need to implement a Scripted Post function and add it in create transition.

Please take a look here for more information and to take some useful examples https://docs.adaptavist.com/sr4js/latest/features/workflows/workflow-functions-tutorial/post-functions-tutorial

Hope this helps,

Fabio

Suggest an answer

Log in or Sign up to answer