set Enumeration Value from query work item

Description
Matthias.Meyer
Posts: 2
Joined: Tue Oct 30, 2018 6:57 am

set Enumeration Value from query work item

Postby Matthias.Meyer » Mon Nov 12, 2018 1:12 pm

Hello together,

we have defined some work item types. In one work item we have to select other work item types via a drop down field. This works fine.

Now we want to auto fill this fields over a pre-save script with javascript.

We can read out the workitems that we want to fill in this list, but we can't set them over the script:
Readout:
trackerService.getWorkItem("PROJECT_ID", "parameter").getCustomField("Value")

Fill in (what we tried):
workItem.setEnumerationValue(dropdown_id, "result_from_readout");

How is it possible?

thank you for your help

Regards
Matthias

scharph
Posts: 8
Joined: Wed Jul 04, 2018 9:19 am
Location: Austria

Re: set Enumeration Value from query work item

Postby scharph » Wed Jan 23, 2019 7:19 am



Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: No registered users and 8 guests