How to Copy Parameters from One Project to Another using CMD Command.
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 ?