Setting Custom Field (drop down list) based on issue type Script Runner

In the workflow I am creating subtasks whenever a parent task is open automatically and setting values of custom fields in the subtasks.... however I'd like to be able to set a drop down in the parent task when Issue Type is equal to <whatever>.

Said parent task won't have a SubTask created... (though in the future it may)

But basically,

Parent Task created > Issue Type Selected TRIGGERS <MyCustomField> to be set to <MyCustomDropDownOption>

The rest of the fields are manually set

Any ideas where and how to set this?

1 answer

Yes, you can use another excellent plugin from Jamie (same author as Script RUnner) the JIRA Behaviors Plugin - https://marketplace.atlassian.com/plugins/com.onresolve.jira.plugin.Behaviours

Docs: https://jamieechlin.atlassian.net/wiki/display/JBHV/JIRA+Behaviours+Plugin

Makes it trivial to set one field based on another right from the workflow config.

I'll play with this tomorrow... just installed it.

From desc sounds excellent!

Already has another feature I was wanting to implement but just accepted I couldn't "mandatory based on other fields"

Amazing.

Thanks Eddie

And Jamie.

Hey, so I started looking at this plugin today.

I'm not rally sure how to use it to do what I want. The documentation has some exmaples but they aren't what I'm looking for and I'm not sure how to modify to make it work for me.

Can you help me out a little with it?

In a parent task....

When issuetype ="x"

then set customfield1 = "y"

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,668 views 18 21
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you