Forums

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

How do you select drop-down menu values containing £ symbol (using SIL / Powerscripts)

jira-admins@weatherbys.co.uk
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 3, 2018

Hi.

I'm trying to get SIL Powerscripts to update a Jira customfield to specific value from single select drop-down menu which includes "£" symbol ...

e.g. customfield_12201 = "£0" - but this doesn't seem to work.

How do you need to encode the £ symbol to match against value held (or worst case always pick the first first real available value from the menu options - i.e. ignoring the default "none") ???

1 answer

0 votes
Wouter Bruinings
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 3, 2018

Hi Tim, 

If £0 is not a value in your select list, that might be the reason it does not update. 

Are you trying to replace the value £ by  £0? If yes, wouldn't it be an option to simply replace the £ by £0 in the select list? 

Kind regards,

Wouter

jira-admins@weatherbys.co.uk
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 3, 2018

Hi Wouter - thanks for the reply.

The select list does definitely contain "£0" as one of its options (together with a few others values £50, £75, etc). 

However, customfield doesn't want to update to these string values - assume the £ symbol is encoded somehow when stored in database? 

Whenever you save/reopen the SIL script the £ symbol is replaced by "[]" a broken character (plus, the zero).

Any ideas?

Wouter Bruinings
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 3, 2018

Suggest an answer

Log in or Sign up to answer