Skip to main content
Solved

Edit job details in Command Center or with qcommand


Forum|alt.badge.img+9

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.

Best answer by RMcG

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. 

 

 

View original

Forum|alt.badge.img+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


Forum|alt.badge.img+9
  • Byte
  • August 12, 2021

Hello,

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

 


Damian Andre
Vaulter
Forum|alt.badge.img+23

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


Forum|alt.badge.img+6
  • Vaulter
  • August 12, 2021

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. 

 

 


Forum|alt.badge.img+9
  • Byte
  • August 16, 2021

Hello,

Thank you very much.


Forum|alt.badge.img+9

@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?

 


Forum|alt.badge.img+6
  • Vaulter
  • August 1, 2022

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings