-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set a string List attribute to a list of values #68
Comments
Note: In the 2nd example the comma within the value is prefixed with a backslash. But it was dropped from the text above! |
Interesting question, unfortunately I am not able to look into this at the moment. This was a pet project and never meant to solve every case possible. Please have a look at the launches that are shipped with the code there might be useful examples. If I remember correctly there is usually a flag to change the separator character. Maybe that would help here? |
It has been a long time since I have done this, but I think if you do an export of a string list attribute that has a comma in one of the values, you should see the format needed for the import. |
As mentioned above, when setting a list type attribute, a separator/delimiter character is used to split the argument string into the list entries. The delimiter character is, by default ",". It is not supported to escape the delimiter separator character. You can only decide to use a different delimiter by using the delimiter parameter. E.g. delimiter=";". |
Thank you Ralph. The command in question is update (not importworkitems), which does not recognize the delimiter parameter. |
Maybe it should. That is unfortunate. If you want to, it would be rather easy to get the code working with the Plain Java Client Libraries and to change the delimiter in the code. Ideally you follow the EWM Extensions workshop lab 1 to get a working environment. I think there is some documentation in the readme. |
In the WorkItemUpdateHelper class, the delimiter for string lists is in ITEM_SEPARATOR. |
Hi,
I need to set a stringList attribute to a list of values separated by commas. But I am not sure how to deal with the case where a value itself contains a comma.
Example: custom.attribute:set="ABC","123","Hi, How are you?"
The attribute is set to this list:
ABC
123
Hi
How are you?
Same thing happens when I try this: custom.attribute:set="ABC,123,Hi, How are you?"
Any clue how I can overcome this issue?
Thank you
The text was updated successfully, but these errors were encountered: