Solved

Edit job details in Command Center or with qcommand

  • 12 August 2021
  • 7 replies
  • 310 views

Userlevel 1
Badge +8

It is possible to edit description of a backup job in Java gui. Is there a way to edit description of a backup job in Command Center or with qcommands? Thanks at all.

icon

Best answer by RMcG 12 August 2021, 23:18

View original

7 replies

Userlevel 2
Badge +3

Hi @ThomasG,

Just to clarify, when you say edit description of a backup job in the GUI, what are you referring to? Are you talking about when editing a Job Description when it is being Suspended/Killed, or is there something else? Can you provide a screenshot showing which section in the GUI you are editing the description under?

Regards,
Greg

Userlevel 1
Badge +8

Hello,

We want to edit description of a job of backup history. Right click job, View job details, TAB Details, Description.

 

Userlevel 7
Badge +23

Tagging @RMcG as he may have done this with XML in the past (which can be executed via qcommands)

Userlevel 3
Badge +6

Unsure about an XML command, there may be one, but here’s an easy option that should do the job in a one liner … the SetJobDescription QScript …

https://documentation.commvault.com/11.24/expert/SetJobDescription.html 

qoperation execscript -sn SetJobDescription.sql -si jobId -si “The new job description” 

Can be executed via CLI, Workflow or REST API as required.

 

If you are running a workflow and want to change the job description of the running workflow job itself you can use the UpdateJobDescription activity which provides append or overwrite options. 

 

 

Userlevel 1
Badge +8

Hello,

Thank you very much.

Userlevel 2
Badge +8

@RMcG 

Thank you:)

 

What if I want to update the job description of a job which has already completed.?

I hope in that case the SetJobDescription.sql would work?

 

This workflow component

Utilities > UpdateJobDescription is not taking the input of jobid, so this is to be used while we are creating some customized workflow and we want to add job description for a job triggered by that Workflow, we can use this component? Is that the use case for this?

 

Userlevel 3
Badge +6

Hi @alligator 

 

Yes (based on a quick test) the SetJobDescription.sql QScript updates the description on completed jobs. 

 

The ‘Utilities > UpdateJobDescription’ activity updates the description of the running workflow job itself (not jobs launched by it).

You can find documentation on the predefined workflow activities here:

https://documentation.commvault.com/11.24/essential/131495_predefined_activities_for_workflows.html

Look / search for the activity name in the list ‘UpdateJobDescription’

 

If you want to use the SetJobDescription.sql QScript in the workflow process to update the description of a job then you can use the ‘QCommands > Operation > ExecuteScript’ activity to do so. 

Reply