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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

770 views 2 19
Join discussion

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