It's all about the answers!

Ask a question

programatically obtaining the change set alias (Linux script)


Jerry Feldman (12710) | asked Jul 02 '14, 10:26 a.m.
edited Jul 02 '14, 1:21 p.m. by Tim Mok (6.6k38)
After checking in changes, a new change set is created:
  (1049) ---@ Gerald A. Feldman "<No comment>" 02-Jul-2014 08:07 AM
While I can obtain the alias, 1049 in this case, by a series of lscm list changesets, grep or other Linux commands, I don't see any way to be able to reference the generated name "---@".

Accepted answer


permanent link
Tim Mok (6.6k38) | answered Jul 02 '14, 11:13 a.m.
JAZZ DEVELOPER
The status flags for the change set should always be after the alias. However, the recommended method of parsing command line output is to use JSON. Results are output in JSON when the command is executed with the -j flag.
Jerry Feldman selected this answer as the correct answer

Comments
Jerry Feldman commented Jul 02 '14, 1:15 p.m.

Thanks. The script I am writing will be in Python, so parsing a JSON output should be trivial

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.