Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JMWE Invalid Options When Setting Single Select Field

Michael Dixon June 21, 2023

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

1 answer

1 accepted

1 vote
Answer accepted
David Fischer
Community Champion
June 21, 2023

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 *** 

Michael Dixon June 21, 2023

@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.

Suggest an answer

Log in or Sign up to answer