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

This widget could not be displayed.

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 Friday in Jira

New 5k User Limit and Other Cloud Updates

Hi all! Lauren here from the Enterprise Cloud marketing team.  I have some exciting Cloud updates from #AtlassianSummit that I wanted to share. We want everyone in your organization to be ab...

101 views 0 3
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