Skip to content
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

how does the createworkitem work?I use it as below!thank you! #115

Closed
hylsp opened this issue Jan 10, 2019 · 7 comments
Closed

how does the createworkitem work?I use it as below!thank you! #115

hylsp opened this issue Jan 10, 2019 · 7 comments
Labels

Comments

@hylsp
Copy link

hylsp commented Jan 10, 2019

a=myclient.createWorkitem(item_type='Task', title='test1', description=None,projectarea_id=None, projectarea_name="[PROD]eRPO_Base_MBSE_PATAC_RTC",template=None, copied_from="144265", keep=False)

the console shows like this:
RuntimeError: OrderedDict mutated during iteration
issue

@AlldreenDev
Copy link

same for me as well.
test4 =myclient.createWorkitem("Story", "New Test Bug2", description = "Sample Description",projectarea_id = "_tAlJ4LshEeS6sqoyGG6bXQ", projectarea_name = "RBEI Internal (SCRUM Process)", copied_from ="846734", keep=False)

Error logs:""""""""""""""""""""""""""""""""""""""
File "C:\Python37\lib\site-packages\rtcclient\client.py", line 1047, in createWorkitem
**kwargs)
File "C:\Python37\lib\site-packages\rtcclient\client.py", line 1150, in _checkMissingParamsFromWorkitem
keep=keep)
File "C:\Python37\lib\site-packages\rtcclient\client.py", line 879, in listFieldsFromWorkitem
keep=keep)
File "C:\Python37\lib\site-packages\rtcclient\template.py", line 180, in listFieldsFromWorkitem
keep=keep)
File "C:\Python37\lib\site-packages\rtcclient\template.py", line 270, in getTemplate
self._remove_long_fields(wk_raw_data)
File "C:\Python37\lib\site-packages\rtcclient\template.py", line 354, in _remove_long_fields
for key in wk_raw_data.keys():
RuntimeError: OrderedDict mutated during iteration

@dixudx
Copy link
Owner

dixudx commented Jun 3, 2020

@AlldreenDev Please clone the latest code in development branch. Hope it works.

@AlldreenDev
Copy link

@AlldreenDev Please clone the latest code in development branch. Hope it works.

It works well.Thanks

@dixudx dixudx closed this as completed in 6feaa31 Jun 24, 2020
@Narendra0908
Copy link

Narendra0908 commented Sep 28, 2023

when i am trying to create a work item, getting the folllowing waring : Error creating work item: At least choose either-or between template and copied_from . How to solve this error???

@dixudx
Copy link
Owner

dixudx commented Sep 28, 2023

@Narendra0908 Would you please share your snippet of creating a workitem? Thanks.

@Narendra0908
Copy link

Narendra0908 commented Sep 28, 2023

Code Snippet :
created_work_item = myclient.createWorkitem(
work_item_type,
work_item_title,
projectarea_id = project_area_id,
projectarea_name = project_area_name,
ownedBy = owned_by_value,
filedAgainst = file_against,
dueDate = due_date,
description = work_item_description,
estimate = estimate_time,
template = None,
copied_from = None,
keep = False
)

@dixudx
Copy link
Owner

dixudx commented Sep 29, 2023

@Narendra0908 Move the discussion to #194.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants