sudo ln -s /home/username/etrack5.3 /usr/local/etrackEnable auto-login by running elogin script from /usr/local/etrack/perl/bin/elogin, which should ask for your username and store password in ~/.epass (plaintext) and all subsequent etrack commands would use this password
Create a script to automatically close all completed PARENT incidents using
echo "select incident from incident_view outer where version='PARENT' and state!='CLOSED' and assigned_to='Example to set any field in etrack to empty' and incident not in (select superincident from incident_view inner where outer.incident=inner.superincident and state!='CLOSED')" | /usr/local/etrack/perl/bin/esql |
while read incident; do
echo "childs closed" | /usr/local/etrack/perl/bin/eclose -i $incident -r "SERVICE_COMPLETED" -B
done
/usr/local/etrack/perl/bin/eset -T @ -i $incident # will set target_version to empty for $incident
No comments:
Post a Comment