Documentation

{{docApp.title}}

{{docApp.description}}

Connect an AI assistant

Your AI assistant can read this documentation directly, so it answers from the current content instead of guessing. Add one of the servers below to your client — they use the Model Context Protocol (MCP). Each one covers a different body of content, so add the one you need.

The catalog did not load. Refresh the page to try again.

Loading…

How can we help?

{{docApp.searchError}}

Searching in {{docApp.searchFilterBySpecificBookTitle}}

 {{docApp.currentResultsSearchText}}  in {{docApp.searchFilterBySpecificBookTitle}}
Found {{docApp.searchResponse.totalResultsAvailable}} matches. Showing the top {{docApp.searchResponse.results ? docApp.searchResponse.results.length : 0}}. Use a more specific search to further narrow down the results.
No documentation pages match this search, so all content types are shown. Most matches are in {{docApp.searchDocTypeRescue.best.name}}.
There is no book with the ID "{{docApp.searchBookRescue.bid}}", so the book filter from this link was ignored and results from all books are shown.

You have an odd number of " characters in your search terms - each one needs closing with a matching " character!
  • {{resultItem.title}} {{resultItem.matchedBy === 'semantic' ? 'semantic' : (resultItem.matchedBy === 'both' ? 'keyword + semantic' : 'keyword')}}

    {{resultItem.url}}

{{docApp.libraryHomeViewProduct.title || docApp.libraryHomeViewProduct.id}}

{{docApp.libraryHomeViewProduct.description}}

  1. {{book.title}}

Entity API / addProjectRisk

Operation Information

  • Application Reference: com.hornbill.projectmanager
  • Scope: Entity - ProjectRisks
  • Class: Entity
  • Required Privilege Level: user
  • Required Rights: Group F - canCreateProjectRisks

Description

This flowcode operation creates a new project risk for the specified project.

Request Parameters

The addProjectRisk API takes the following input parameters. It is important to note that the parameters must satisfy the requirement of the input validation checks.

Name Type Required Description
projectId xs:integer Yes The project id.
risk xs:string Yes The project risk.
description xs:string No A description of the project risk.
impact xs:string Yes The impact value of the project risk, taken from the simple list. e.g. 'impact.high'
probability xs:string Yes The Probability value or the project risk, taken from the simple list. e.g. 'probability.high'
weighting xs:integer Yes The weighting of the project risk (0-100). Lowest risk being 0, highest risk being 100.
status xs:string Yes The status of the project risk. (status.confirmedRisk)
customA1 xs:string No Custom Field A1 (varchar).
customA2 xs:string No Custom Field A2 (varchar).
customA3 xs:string No Custom Field A3 (varchar).
customA4 xs:string No Custom Field A4 (varchar).
customA5 xs:string No Custom Field A5 (varchar).
projectTemplateRiskId xs:integer No The project template risk the new risk will be created from (if any).

Response Parameters

Name Type Description
outcome xs:string The outcome of the flowcode operation.
projectRiskId xs:integer The id of the new project risk.

Code Examples

In This Document