PUT /rest/api/2/field/association
Associates fields with projects.
Fields will be associated with each issue type on the requested projects.
Fields will be associated with all projects that share the same field configuration which the provided projects are using. This means that while the field will be associated with the requested projects, it will also be associated with any other projects that share the same field configuration.
If a success response is returned it means that the field association has been created in any applicable contexts where it wasn't already present.
Up to 50 fields and up to 100 projects can be associated in a single request. If more fields or projects are provided a 400 response will be returned.
Permissions required: Administer Jira global permission.
Servers
- https://your-domain.atlassian.net
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
associationContexts[] |
Array | Yes |
Contexts to associate/unassociate the fields with. |
associationContexts[].identifier |
Object | No | |
associationContexts[].type |
String | Yes | |
fields[] |
Array | Yes |
Fields to associate/unassociate with projects. |
fields[].identifier |
Object | No | |
fields[].type |
String | Yes |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.