cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

How to Copy Parameters from One Project to Another using CMD Command.

kjain-2
15-Moonstone

How to Copy Parameters from One Project to Another using CMD Command.

Hi Community,

 

I am able to execute this command (Just to check how to add parameter using CMD Command):-

im editissue --field=Parameters="Identification2;values=a,b,c
Identification2=Pick List
Identification2;description=hello" 11309

 

in Windows Power Shell by changing line using Shift+Enter and it's working. But i have two doubt:-

 

1.) In actual Scenario i have to execute this command in .bat file so in code how to change line automatically ?

 

2.) If i have added one Parameters already and i am going to add one more then first parameters get deleted and only latest one reflects. Any resolution ?

 

Please take a look over this code and this code belongs to actual scenario :- 

 

@echo off
SETLOCAL ENABLEDELAYEDEXPANSION
SET count=1
FOR /F "tokens=* USEBACKQ" %%F IN (`im issues --fields="Parameters" 10014`) DO (
SET var!count!=%%F
SET /a count=!count!+1
)
set end=%count%-1
FOR /L %%A IN (1,1,%end%) DO (
im editissue --user=abc --password=abcd --field="Parameters=!var%%A!" 11309
)
ENDLOCAL


This code is written in abc.bat file and actual scenario is through CMD i have to copy All parameters from one project to another so i used this approach but not getting fruitful output. Any suggestion ?

 

Thanks in Advance.

 

Grube,

Kapil

1 REPLY 1

Hello Kapil, Hello Everyone,

 

you can try this solution referenced here:

https://github.com/VEckardt/IntegrityCopyParameters

 

Would be very pleased to get feedback.

 

Volker

Announcements


Top Tags