-
Notifications
You must be signed in to change notification settings - Fork 45
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
Create workitem of type 'Epic' - HTTP 404 #90
Comments
@Mershl Can you successfully create an Epic from the web UI ? |
@dixudx Yes, just tested. Is the service url provided by the service catalog possibly wrong? |
@dixudx Thanks for the update. I've cut down my implementation to a minimum example (basically just calling createWorkitem with a type, title, description, PA and a copied_from task).
Tested using latest version of 'development' branch. |
@Mershl I retested the latest code of branch my_rtc = RTCClient(.....)
new_workitem = my_rtc.createWorkitem("Epic", "client test", "test desc", "_73iaQFM1EeeSvaa7xqfEqw", copied_from=9, keep=True) Please pull the latest code and retry. If still the same error, please paste your sample workitem (already created successfully) xml here. We may need to compare the item type. |
Hi @dixudx, I found the culprit. I get a
if I set |
@Mershl Glad to see it works on your environment. Good job. Actually you should copy from a workitem with same type. Because different workitems tend to have different attributes, which may result in such occurrences. |
@dixudx How long does it usually take you to create an Epic/Task? Creating an Epic takes about 43 seconds and a Task averages at 40 seconds per creation on my two tested RTC installations. |
@Mershl Just a few seconds. Before posting request to create new workitem, the client will try to fetch some metadata to copy into the post body, which will take several seconds. In general, it takes about 5-6 seconds. |
The problem is solved. Just one last question @dixudx. Have you ever tried calling Create in a thread pool. I have additional parameters that lead to a creation of ~40s. Using multithreads it should be possible to mititgate the scaling of this time for 10 WorkItem creations. |
@Mershl Good question. Actually using multithread will bring some benefits, mainly saving time. But RTC is mainly for project managements. Time efficiency is not that significant. Also the code structure, asynchronous callings and etc will make the library complicated and error-prone. If we want to create tens of workitems simultaneously, we can just call |
Thanks @dixudx. Using threads it's possible to create 10 (and possibily more) Workitems at a time.
|
Hi @dixudx
When trying to create a workitem with a task_type of 'Epic' the task_type will be found by
projectarea.getItemType(item_type)
but on creation it will report:In the log it's visible as:
The text was updated successfully, but these errors were encountered: