Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Div
idProductTOC

On this page

Table of Contents
maxLevel2
excludeOn this page
typeflat
separatorpipe

Summary

The addTask action can be used to add arbitrary tasks to a job. However, you must know the parameter fields that each task uses and needs. Normally, the task provider doesn't document this. However, they can be discovered. We have documented some examples already - see Examples for AddTask Actionaction. If the task you want is not already documented, then you need to discover the fields needed.  There are 2 ways to discover these fields.

...

Table plus
autoNumbertrue


StepDiscussion 
In Chrome, to to View → Developer → Developer Tools → Network tabOr similar tool that captures interactions between your browser and the server.
Go to the UI to add a task manually
Either add or update a task that you want to automate
Save the taskTry to fill in or select most fields you are interested in so they will show up as being set.
Look for a POST and a line under that contains fields and values looking like your task input

Look for field names that match fields on the screen. There are lots of other fields that should be ignored.

Example: selectedRepository_0=defaultRepository&cleanCheckout=true

Add the fields to the addTask action using the various field parametersExample: --field "myfield=myvalue" or similarly with field1, value1, etc ...


...