When setting an single select issue field option with JMWE, I get the following error:
Incorrect request: {"customfield_10680":"Option value '2G Customer Cancel - No BDO Received' is not valid"}
My assumption is that it has something to do with there being a dash in the option value but I'm unsure how resolve this. I know there's the possibility of using the ID instead but I'd prefer using the option name if possible, as we have multiple field configurations with this option.
When setting the field using Nunjucks, I've also tried {{"2G Customer Cancel - No BDO Received"}} with no avail.
Any suggestions or help would be appreciated! Thanks
Hi @Michael Dixon ,
the most likely cause is that the value you are using is not exactly the Option value string. For example, there might be a trailing space in the Option value.
To make you have the right value string, you can "test" this expression against an issue that has the "2G Customer Cancel - No BDO Received" value in customfield_10680:
***{{issue.fields.customfield_10680}}***
and copy the text between *** and ***
@David Fischer Thank you so much for the help, that was exactly the problem.
For some reason there was a trailing space which didn't show up in the options menu but when printing from a test issue using the expression tester it showed.
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.