Add a Connection to Azure DevOps in Engini
Prerequisites
- An Azure DevOps organization (Azure DevOps Services) or a project collection (Azure DevOps Server).
- A Personal Access Token (PAT) from Azure DevOps. It is the only way to connect: Engini sends the token as the password, so there is no user name to enter.
- The address of your Azure DevOps organization (Azure DevOps Services), or the collection URL of your Azure DevOps Server (on-premises).
Set up Azure DevOps Services (cloud)
- Sign in to Azure DevOps at
https://dev.azure.com/your-organization. This address is your Organization / Collection Url. - Open User settings and select Personal access tokens.
- Click + New Token.
- Enter a name for the token, select your organization, and set an expiration date.
- Under Scopes, select only the scopes that the actions and triggers you use need:
- Work Items - Read, write & manage
- Code - Read
- Build - Read
- Project and Team - Read
- Service Hooks - Read, write & manage (needed for the triggers)
- Click Create and copy the token right away. Azure DevOps shows it only once.
Set up Azure DevOps Server (on-premises, formerly TFS)
- Sign in to your Azure DevOps Server. The Organization / Collection Url is the address of your project collection, for example
https://your-server/tfs/your-collection(orhttps://your-server/your-collection). - Open your profile menu and select Security, then Personal access tokens.
- Click + New Token.
- Enter a name for the token, select your collection, and set an expiration date.
- Select the same scopes as listed for Azure DevOps Services above, and click Create. Copy the token right away, because it is shown only once.
- In Engini, set the API Version to match your server: 7.0 for Azure DevOps Server 2022, 6.0 for 2020, 5.0 for 2019, or 4.1 for TFS 2018.
Connecting Engini to Azure DevOps
- Enter your Engini account at https://app.engini.io.
-
Navigate to the Connections page by clicking on Connections in the left sidebar or by clicking here.

-
Click on the “New Integration” option located at the top bar.

-
Choose the Azure DevOps option from the available applications.

-
Enter the following details in the “New Integration” form and press Save:

- Connection Name - Enter a name that helps identify the Azure DevOps connection.
- Organization / Collection Url - The address Engini connects to. For Azure DevOps Services (cloud), enter your organization address, for example
https://dev.azure.com/your-org. For Azure DevOps Server (on-premises), enter your project collection address, for examplehttps://your-server/tfs/your-collectionorhttps://your-server/your-collection. Engini tells the two apart by this address. - Personal Access Token - The token you created in Azure DevOps under User settings, Personal access tokens (on Azure DevOps Server, under Security). Enter only the token, without a user name.
- API Version - Needed only for Azure DevOps Server (on-premises): enter 7.0 for Server 2022, 6.0 for Server 2020, 5.0 for Server 2019 or 4.1 for TFS 2018. The default is 7.0. Azure DevOps Services (cloud) always uses 7.1 and ignores this field.
- Save - Click Save to create the connection.
Triggers
The triggers start the workflow the moment the event happens in Azure DevOps. Engini creates a service hook in your project for the trigger, so the token needs the Service Hooks scope and you need to be allowed to manage service hooks in the project (usually a project administrator). Note: On Azure DevOps Server, the server must be able to reach Engini over the internet to deliver the event.Code Pushed
Starts the workflow when code is pushed to a Git repository in the project.
- Project - The project to watch. Choose it from the list of your projects, or map its Id from the output of Get Projects.
- Add Conditions - Click Add Conditions to define conditions that narrow down the data list and return only the relevant items. To learn more about using filters, click here.
Pull Request Created
Starts the workflow when a pull request is created in the project.
- Project - The project to watch. Choose it from the list of your projects, or map its Id from the output of Get Projects.
- Add Conditions - Click Add Conditions to define conditions that narrow down the data list and return only the relevant items. To learn more about using filters, click here.
Work Item Created
Starts the workflow when a work item is created in the project.
- Project - The project to watch. Choose it from the list of your projects, or map its Id from the output of Get Projects.
- Add Conditions - Click Add Conditions to define conditions that narrow down the data list and return only the relevant items. To learn more about using filters, click here.
Work Item Updated
Starts the workflow when a work item is updated in the project.
- Project - The project to watch. Choose it from the list of your projects, or map its Id from the output of Get Projects.
- Add Conditions - Click Add Conditions to define conditions that narrow down the data list and return only the relevant items. To learn more about using filters, click here.
Actions
Actions that work inside a project start with a Project field. Click it and choose one of your projects from the list, or map the project Id from the output of Get Projects. A work item Id is the number Azure DevOps shows next to the work item, and you can also map it from the output of Get Work Items or the Work Item Created trigger.Create Service Hook
Creates a service hook subscription in Azure DevOps, which sends an HTTP request to a URL you choose whenever the event you pick happens in a project. It returns the subscription Id, which you need to delete the hook later with Delete Service Hook.
- Event Type - The Azure DevOps event that triggers the hook, for example
workitem.created. - Resource Version - The version of the event payload to send, for example
1.0. - Project Id - The project to watch for the event. Choose it from the list, or map the project Id from Get Projects.
- Webhook URL - The URL that receives the request when the event happens, for example
https://example.com/hook.
Create Work Item
Creates a work item, such as a task or a bug, in a project.
- Project - The project to create the work item in. Choose it from the list, or map the project Id from Get Projects.
- Work Item Type - The kind of work item to create, for example Task, Bug or User Story. Choose it from the list of the types your project offers.
- Title - The title of the new work item, for example
Fix the login page. - Add Field - Click Add Field to add and populate additional fields for the selected activity. To learn more about managing activity data, click here.
- Description - The description of the work item, as text or HTML.
- State - The state to start the work item in, for example
Active. Leave it out to use the default state of the work item type. - Assigned To - The person the work item is assigned to, as a name or an email address.
- Area Path - The area of the project the work item belongs to, for example
Project\Team A. - Iteration Path - The sprint the work item belongs to, for example
Project\Sprint 1. - Tags - Tags to add to the work item, separated by commas, for example
urgent, backend. - Other Fields - Any other field of the work item. For each one, enter the Field Reference Name exactly as Azure DevOps names it, for example
Microsoft.VSTS.Common.Priority, and the Value to set.
Delete Service Hook
Deletes a service hook subscription.
- Subscription Id - The subscription to delete. Map the subscription Id returned by Create Service Hook.
Delete Work Item
Deletes a work item. Azure DevOps moves it to the recycle bin.
- Work Item Id - The work item to delete. Click the field and choose it from the list, which shows your newest work items as
Id - Title, or map the Id from a previous step, for example1234.
Get Builds
Retrieves the builds of a project.
- Project - The project to get the builds of. Choose it from the list, or map the project Id from Get Projects.
- Add Filter - Click Add Filter to define conditions that narrow down the data list and return only the relevant items. To learn more about using filters, click here.
- Top N - You can set the maximum number of records Engini will return for the object you chose (default = 100, minimum = 1).
- Status - Only the builds with this status: All, Cancelling, Completed, In progress, None, Not started or Postponed.
- Result - Succeeded, Partially succeeded, Failed or Canceled.
- Branch - The branch the build ran on, for example
refs/heads/main. - Pipeline Ids - The Ids of the pipelines (build definitions), separated by commas, for example
12,15. - Requested for - The name or email of the person who requested the build.
- Sort order - Finish time, Queue time or Start time, ascending or descending.
Get Projects
Retrieves the projects of your Azure DevOps organization.
- Add Filter - Click Add Filter to define conditions that narrow down the data list and return only the relevant items. To learn more about using filters, click here.
- Top N - You can set the maximum number of records Engini will return for the object you chose (default = all records).
Get Pull Requests
Retrieves the pull requests of a project.
- Project - The project to get the pull requests of. Choose it from the list, or map the project Id from Get Projects.
- Add Filter - Click Add Filter to define conditions that narrow down the data list and return only the relevant items. To learn more about using filters, click here.
- Top N - You can set the maximum number of records Engini will return for the object you chose (default = all records).
- Status - Only the pull requests with this status: Active, Abandoned, Completed or All. Active pull requests are returned by default.
- Repository Id - Only the pull requests of this repository. You can map it from the output of Get Repositories.
- Creator Id and Reviewer Id - Only the pull requests created by, or assigned for review to, this user.
- Source branch and Target branch - Only the pull requests from, or into, this branch, for example
refs/heads/featureorrefs/heads/main.
Get Repositories
Retrieves the Git repositories of a project.
- Project - The project to get the repositories of. Choose it from the list, or map the project Id from Get Projects.
- Add Filter - Click Add Filter to define conditions that narrow down the data list and return only the relevant items. To learn more about using filters, click here.
Get Work Item
Retrieves one work item with all of its fields, such as its title, state, type, assignee and tags.
- Work Item Id - The work item to retrieve. Click the field and choose it from the list, which shows your newest work items as
Id - Title, or map the Id from a previous step, for example1234.
Get Work Item Types
Retrieves the work item types a project offers, such as Task, Bug or User Story. Run it before Create Work Item to learn the type names that project accepts.
- Project - The project to get the work item types of. Choose it from the list, or map the project Id from Get Projects.
Get Work Items
Finds work items with a query written in WIQL (Work Item Query Language) and returns them.
- Top N - You can set the maximum number of records Engini will return for the object you chose (default = 100, minimum = 1).
- WIQL query - The query that selects the work items, for example
Select [System.Id] From WorkItems Where [System.State] = 'Active'. The query language is described in the Azure DevOps documentation under Work Item Query Language.
Get Work Items Batch
Retrieves several work items at once, with all of their fields, from a list of work item Ids. Use it after Get Work Items, which returns the Ids of the work items that match a query.
- Work Item Ids - The list of Ids of the work items to retrieve, for example 12, 15 and 21. Map the Ids list from the output of Get Work Items, or add the Ids one by one as separate items.
Update Work Item
Updates a work item. Only the fields you fill in are changed.
- Work Item Id - The work item to update. Click the field and choose it from the list, which shows your newest work items as
Id - Title, or map the Id from a previous step, for example1234. - Add Field - Click Add Field to add and populate additional fields for the selected activity. To learn more about managing activity data, click here.
- Title - The new title of the work item.
- Description - The new description, as text or HTML.
- State - The new state, for example
Active. - Assigned To - The person to assign the work item to, as a name or an email address.
- Area Path - The new area path, for example
Project\Team A. - Iteration Path - The new iteration path, for example
Project\Sprint 1. - Tags - The tags of the work item, separated by commas, for example
urgent, backend. - Other Fields - Any other field of the work item. For each one, enter the Field Reference Name exactly as Azure DevOps names it, for example
Microsoft.VSTS.Common.Priority, and the Value to set.
Send API Request
This activity allows you to send a custom API request directly to Azure DevOps’s API. Use it for Azure DevOps features that the actions above don’t cover.
- Base Url - The root URL of the Azure DevOps API. It is filled in from your Azure DevOps connection and can’t be edited here.
- Relative url - You can specify additional path segments or parameters that need to be added to the end of the Base Url. This allows you to customize the specific request you want to perform.
- Method - Select the HTTP method (e.g., Get, Post, Put, Delete, Patch). The default is POST.
- Body Type - Defines the format of the data in the body of your request. The default, application/json, means the body contains a JSON-formatted payload.
- application/json – Sends the request body in JSON format. Commonly used by REST APIs.
- custom – Allows you to define a custom body format by manually setting the Content-Type header. Add a
Content-Typerow in Add Headers with the media type you need (for exampleapplication/xml). With any other Body Type, a Content-Type you type in Add Headers is not sent; Engini sets it from the Body Type, and the run history shows it underheadersnotsent. - application/x-www-form-urlencoded – Sends the body as URL-encoded key-value pairs, commonly used in form submissions.
- file – Sends a file as the request body.
- multipart/form-data – Sends form data that may include both text fields and files.
- text/html – Sends the request body as HTML content.
- text/plain – Sends the request body as plain text.
- text/xml – Sends the request body in XML format.
- Body - Contains any data that is being sent to the server.
- Add Headers - Additional metadata about the request, such as the type of data Engini can accept, the length of the request body, and authentication information.
- Add Queries - The query refers to the parameters or data that are included in the URL of an HTTP request to provide additional information or instructions to the server.