Copy description to a custom field

Description
peterfriedrich
Posts: 35
Joined: Tue Jul 30, 2013 1:08 pm

Copy description to a custom field

Postby peterfriedrich » Mon Apr 10, 2017 12:27 pm

Hello,
I want to copy the content of the description to a custom field while creating a new WI automatically.
The POP "Workflow Function: Create Linked Work Item (Enhanced)" does not work.
Is there any other idea ?
regards
Peter

smarty
Posts: 37
Joined: Fri Jan 18, 2013 4:43 pm
Location: Germany / Frankfurt
Contact:

Re: Copy description to a custom field

Postby smarty » Tue Apr 11, 2017 3:46 pm

Hello Peter,

are you familiar with the FMC Workitemsave extension? A pre-save script would also work while creating a workitem, but is not bound to a specific workflow transition like a workflow function. So it would copy the WI description every time the WI is saved.

Since Polarion 2016 you can execute javascripts as workflow functions if they are stored in %Polarion_Home%\scripts - without a plugin/extension (cf. Help > Administration Reference > Administration Reference > Workflow Functions (Work Items) > ScriptFunction).
Maybe you can adapt a FMC Workitemsave example script.

The extension you mentioned made me curious, but I can't find it:
Searching the extensions site for "Workflow Function" resulted in
Both were published before 2014 and instruct to install in the Polarion/polarion/plugins directory (instead of polarion/extensions), which seems out-dated to me. Can this be a reason why your's did not work?

Regards, Martin
My environment: Polarion ALM 2016 SR2 on Windows Server 2008,
Polarion-JIRA Connector to JIRA 7.x

peterfriedrich
Posts: 35
Joined: Tue Jul 30, 2013 1:08 pm

Re: Copy description to a custom field

Postby peterfriedrich » Mon Jun 19, 2017 8:30 am

Hello Martin,
thanks for your reply.
I downloaded the POP "Workflow Function: Create Linked Work Item (Enhanced)" in July 2014 from the Polarion Website. Anyhow it is not supported any more and therefore not available today.

Thanks for your detailled description but is there also a more easy way to copy the content of the description field to a custom field ?

Kind regards
Peter

smarty
Posts: 37
Joined: Fri Jan 18, 2013 4:43 pm
Location: Germany / Frankfurt
Contact:

Re: Copy description to a custom field

Postby smarty » Wed Jun 21, 2017 4:39 pm

Hello Peter,

apart from workflow functions or the pre-save hook scripts I do not see easier ways to do it.

Regards, Martin
My environment: Polarion ALM 2016 SR2 on Windows Server 2008,
Polarion-JIRA Connector to JIRA 7.x


Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: No registered users and 2 guests