createComponent(IHubIssue issue, String componentName, String description, String leadAccountId, String assigneeType)
Creates a new IHubComponent in the project that the issue belongs to.
|The issue where the component needs to be created
|The component name
|The description for the component, e.g. Database
|The account Id of a lead
The type assignee - can be one of following (strings)
- The Component is NOT automatically added to any of the fields of the issue.
- If a version with the same name already exists, then the existing component will be returned and no new component will be created.
- The component is created in the project where the issue resides
- Returns a component or null if the version could not be created
- Set leadAccountId to 'null' in case no lead should be set
- When assigneeType is null, createComponent will return null.