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

Will R August 22, 2013

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

1 vote
EddieW
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.
August 22, 2013

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.

Will R August 22, 2013

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.

Will R August 25, 2013

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