Monitoring Default Assignments for Jira Batch Jobs
When you perform the Select default assignments for syncing time from Jira step via the Feature Console, a background process starts that selects the Use for Syncing Time from Jira field on all the eligible assignments. An assignment is eligible for syncing time if the following are true:
- There aren't any other assignments for the same project and resources in the given time frame.
- Its status is not set to "Closed".
If multiple assignments are found with overlapping start or end dates, none of them are selected as default. In this case, you must manually select the default assignment.
Depending on how you configured the Default Assignments for Jira Settings custom setting, once the process finishes, you might receive a notification with a link to the batch process record.
When you perform the feature console step, a batch Apex job is started. Once the step moves to "Done", you can monitor the execution of the job.
- From Setup, click Environments | Jobs | Apex Jobs. A list of all the jobs in your org displays.
- Find the job with AssignmentsToSyncTimeFromJiraBatch apex class. The Status field displays the current status of the job.
After the batch job finishes, by default, you will receive an email notification with the following:
- Number of processed assignments
- Number of successfully selected assignments for syncing time from Jira
- Number of errors
- Link to the related Default Assignments for Jira Batch record
You can change the default notification settings by changing the values in the related custom setting. For more information, see Default Assignments for Jira Settings.
When you open the related Default Assignments for Jira Batch record from an email, Chatter or task notification, you can access the execution logs from the Default Assignments for Jira Batch Logs related list. Each log record contains a type and a message. If assignments with overlapping start or end dates are found, a corresponding log with the Error type is created. The message of these logs contains the IDs of the assignments with overlapping time. In that case, you must manually select the Use for Sync Time from Jira for only one of the assignments.