How to work with field value dependency when there's context present?

Dear Jaime,

I have a custom field named SubComponent, whose values depend on the values of the Component field.

I was able to implement such feature following the examples you provide, among the plugin docs and the answers you've given to other troubled users.

Problem is, now I've added per-project contexts to SubComponent, so that it can feature different values, depending on the project.

I think the latter is screwing up how the aforementioned feature works, because now the only value I get on SubComponent is None.

So the question is, how can I tell the script to get the context of the custom field, in order to get the correct values for it? Is that possible?

Thanks in advance.

Regards,

Petri

 

PD: We are currently using JIRA v6.2.7 and Behaviours/Script Runner v3.0-beta-14

1 answer

This widget could not be displayed.

Dear Jaime,

I took a 5-minute rest and realized that the issue was that I defined the wrong component ... to which I was pretending to attach the Behaviours feature.

Once fixed, things worked as expected.

Hope I didn't make you waste much time with this question.

Regards,

Petri

Only about 1 minute. You should upgrade to 3.0.6 though, rather than use the pre-release version.

Hi Petri, > I was able to implement such feature following the examples you provide, among the plugin docs and the > answers you've given to other troubled users. Can you say more how you achieved it? Thank you in advance

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

523 views 3 19
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