-
Notifications
You must be signed in to change notification settings - Fork 246
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
Cannot call create_work_item in CLI with fields containing "=" sign #243
Comments
The functions if you want to create or update a work item from a python script, then call the python sdk directly. You can find these methods here: The second issue you mentioned, regarding the split is a bug. Thanks for reporting it. |
For the first point, I understand now: you use docstrings for generating documentation on usage of CLI. It is funny that you redirect me to the SDK because I came upon this lines of code in the CLI while I was trying to figure out how to use the functions in work_item_tracking_client.py 😄 |
create_work_item
of CLIcreate_work_item
of CLI cannot support fields strings containing =
sign
create_work_item
of CLI cannot support fields strings containing =
sign
Fields value can now have '=' as well. Thanks @jfthuong for reporting this. You should be able to see the changes in next release. |
Fixed in version 0.1.4. |
The variable
fields
for functionscreate_work_item
andupdate_work_item
is a list if strings"<param>=<value>"
, but is referenced in several places (docstring and error message) as aSpace separated "field=value"
(see file cli\work\common\work_item.py).Moreover, the code
kvp = field.split("=")
prevents using a value with=
sign (like in Test Steps that use XML code): it would be better to add a limitation:kvp = field.split("=", 1)
.The text was updated successfully, but these errors were encountered: