How to commit backlog item to a sprint using Hansoft SDK -


i trying add backlog items sprint using hansoft sdk.

there function "hpmfunctiontaskgetlinkedtosprint" gets id of sprint task linked. unfortunately there no function set sprint of task, in sdk.

is there way commit item sprint?

in gui looks this: add backlog item sprint

thank you, ondras.

i have got answer hansoft support.

to add backlog item sprint have create proxy item:

hpmtaskcreateunified proxytaskcreate = new hpmtaskcreateunified(); proxytaskcreate.m_tasks = new hpmtaskcreateunifiedentry[1]; hpmtaskcreateunifiedreference parent = new hpmtaskcreateunifiedreference(); hpmtaskcreateunifiedreference previous = new hpmtaskcreateunifiedreference(); parent.m_blocalid = false; parent.m_refid = sprint.uniqueid.m_id; // task reference id of sprint previous.m_blocalid = false; previous.m_refid = sprint.uniqueid.m_id; // task reference id of sprint proxytaskcreate.m_tasks[0] = new hpmtaskcreateunifiedentry(); proxytaskcreate.m_tasks[0].m_bisproxy = true; proxytaskcreate.m_tasks[0].m_localid = 0; proxytaskcreate.m_tasks[0].m_tasktype = ehpmtasktype.planned; proxytaskcreate.m_tasks[0].m_tasklockedtype = ehpmtasklockedtype.backlogitem; proxytaskcreate.m_tasks[0].m_parentrefids = new hpmtaskcreateunifiedreference[1]; proxytaskcreate.m_tasks[0].m_parentrefids[0] = parent; proxytaskcreate.m_tasks[0].m_previousrefid = previous; proxytaskcreate.m_tasks[0].m_proxy_refertoreftaskid = task.uniqueid.m_id; // task ref in backlog want commit previous.m_blocalid = true; previous.m_refid = 0; hpmchangecallbackdata_taskcreateunified proxyresult = m_session.taskcreateunifiedblock(projectid, proxytaskcreate); 

it dumpy-looking, working. @ end, had change on code name of sprint , task variable.

ondras


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -