Skip to main content
8-Gravel
August 17, 2018
Question

Transfer Parameters between projects or documents

  • August 17, 2018
  • 2 replies
  • 5909 views

Is it possible to transfer parameters from one project to another?

And with parameters I mean the feature that replaces strings with values which are defined on project or document level.

 

Use Case:

There are parameters defined in project Item A.

I create a new project Item B

I want to transfer the defined parameters from project A to project B.

 

I tried to export the parameters and the only way I can find is to mark the values in the GUI, and paste them to a text or excel file.

 

I could not find a way to import any parameters.

 

I know If I just copy paste the project item the parameters might be tranfered but that does not cover the case when I want to update parameters!

 

2 replies

17-Peridot
August 20, 2018

In Unix the command would be like this:

im editissue --field=Parameters=`im issues --field=Parameters <Source_ID>` <Target_ID>

 

not sure what the CMD/PowerShell alternative is

Hope it helps

8-Gravel
August 21, 2018

Thanks so far.

The CMD alternative seems to be this:

im editissue --field=Parameters="im issues --fields=Parameters <Source_ID>" <Target_ID>

 

but according to the error message (see Attachment) it cannot save the item because of "specical characters" in the field.

 

The parameters do not have any special characters but I gess the output of the "im issues" command  gives the parameters and all of its meta data in sort of table view and so this cannot be set to the target "Parameters" fields.

 

Is there a way to export only one parameter? So one could iteraterate over all parameters via an CMD line loop?

17-Peridot
August 21, 2018

Hi Elmar,

I was a litte bit assuming this error.

we do have 3 "special Chars" in the result: ";" and "=" and the "carriage return". All of that has to be masked, which means prefixed with a "\" like "\;", "\=" and usually a "\n".

Haven't done it yet, although I have written many of such small helper classes in the past. I would write a small java class to perform this "replacement", and would then stay inside java to call the Integrity API.

Not sure how fluent you are in java, that's why I mentioned powershell as alternative. I am pretty sure that also powershell can do this. 

If I am not mistaken, there is also a custom developed solution available to move params into an Excel Sheet, allowing you to review the parameters, and then push the data back into another project. Not sure who has written this small utility, remember only that there was a screenshot that looked like Excel and a set of multiple Integrity parameters 🙂

Volker

 

17-Peridot
August 22, 2018
14-Alexandrite
July 15, 2020

Hello Volker,

 

Thanks for the solution which you provided of Copying of Parameter Values from 1 doc to other doc. Github solution helpful for me.

17-Peridot
November 7, 2020

Thanks a lot for your feedback! 😊