SpiraPlan: SoapService SOAP Web Service
See all operations
Association_RetrieveForArtifact
Description
Retrieves a set of associations to the specified artifact
The source artifact type and id will be the same as the ones passed in
Example(s)
RemoteSort remoteSort = new RemoteSort();
remoteSort.PropertyName = "Comment";
remoteSort.SortAscending = true;
RemoteFilter remoteFilter = new RemoteFilter();
remoteFilter.PropertyName = "ArtifactTypeId";
remoteFilter.IntValue = (int)DataModel.Artifact.ArtifactTypeEnum.Incident;
remoteAssociations = spiraImportExport.Association_RetrieveForArtifact(credentials, projectId, (int)DataModel.Artifact.ArtifactTypeEnum.Incident, incidentId1, new RemoteFilter[] { remoteFilter }, remoteSort);
Parameters
| Type | Name | Required |
|---|---|---|
| RemoteCredentials? | credentials - The credentials for accessing the API | |
| int | projectId - The id of the project | Yes |
| int | artifactTypeId - The id of the artifact type | Yes |
| int | artifactId - The id of the artifact | Yes |
| ArrayOfRemoteFilter? | remoteFilters - The list of filters to apply | |
| RemoteSort? | remoteSort - The sort to apply |
Return Value
ArrayOfRemoteAssociation - An array of association records