Configuring Integration for Jira Project Filtering
To assign Jira projects to incoming tickets, configure the following:
-
Modify the Plan Initializer Script to contain the logic to filter which Jira project the tickets are assigned to.
For example, you can have a use case where you create tickets in a Jira project with an ID of "33" where the application is Slack, and a Jira project with an ID of "50" where the application is Okta. Then for all other applications the tickets would be created in a Jira project with an ID of "1".
Note
In the below example, Slack and Okta are considered to be configured as a ManagedResource for the integration in question.Copyfor (AccountRequest accReq : Util.iterate(plan.getAccountRequests())) {
if (accReq.getApplicationName().equals("Slack")) {
arguments.put("serviceDeskId", "33");
arguments.put("requestTypeId", "33");
} else if (accReq.getApplicationName().equals("Okta")) {
arguments.put("serviceDeskId", "50");
arguments.put("requestTypeId", "50");
} else {
arguments.put("serviceDeskId", "1");
arguments.put("requestTypeId", "1");
}
} -
Modify the attributes
requestTypeId
andserviceDeskId
, located under the provision tag, to read the modified values from the Plan Initializer Script rather than the default hard coded values.<entry key="requestTypeId" value="$plan.arguments.requestTypeId"/>
<entry key="serviceDeskId" value="$plan.arguments.serviceDeskId"/>
-
Update the
statusMap
attribute, located under thecheckStatus
tag, to reflect the status that is being received from multiple projects.