Forums

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

set custom field value based on custom field value (Jira server)

pasquale.scandurra October 12, 2022

Hi guys,

I need help to implement an automation rule in my Jira project.

I'm running a Jira server instance and I need to write a rule at creation of a ticket.

When a ticket is created I need to set a custom field value (type string) to a different value depending on the value of another custom field.

I.e. the ticket is created by a customer with field A set to "Hello" then field B must automatically be set to "Holiday"

if field A is set to "China" then field B must automatically be set to "Developer".

As I said field A is string type while field B is Single Issue Picker.

I've tried with post-function in the workflow but I didn't manage to do it. 

I have script runner plug-in installed.

Any suggestion?

Thank you in advance, Pas

1 answer

1 vote
Tim Perrault
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 12, 2022

Try taking a look at this example for using a ScriptRunner behaviour https://library.adaptavist.com/entity/set-behaviour-multi-and-single-select-options-and-value 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events