Hello everyone,
is it possible(via script) to set the available options of a custom field select list, based on the project an issue is being created in?
E.g. field selectlistA.
If we are in Project A, selectlistA should have options: 1,2,3,4.
If we are in Project B, selectListA should have options: 2,4,6,8.
Many thanks in advance
Kevin Klesz
Hi @Kevin Klesz
You don't need to do this specific use case via scripts. You can simply use custom fields contexts.
This way, you'd create a context and map it to project A, where the dropdown values are 1,2,3,4 and another context mapped to project B where the values are 2,4,6,8
You can find more info here: https://confluence.atlassian.com/adminjiraserver/configuring-a-custom-field-938847235.html#Configuringacustomfield-add_schemeAddinganewcontext
Hope it helps!
Kind regards
Jorden
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I understand that completely! It's not Atlassian's most obvious feature ;)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That support link is only for Server and it does not have a linked article for Cloud.
Which is pretty much the story of Atlassian support in general.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.