65 lines
2.5 KiB
OpenEdge ABL
65 lines
2.5 KiB
OpenEdge ABL
/**
|
|
* Apex class for JIRA Integration
|
|
* This class handles fetching and processing JIRA issues
|
|
*/
|
|
public with sharing class JiraIntegration {
|
|
|
|
/**
|
|
* Default constructor
|
|
*/
|
|
public JiraIntegration() {
|
|
// Constructor logic can be added here if needed
|
|
}
|
|
|
|
/**
|
|
* Inner class to represent a JIRA issue
|
|
*/
|
|
public class JiraIssue {
|
|
public String key { get; set; }
|
|
public String summary { get; set; }
|
|
public String priority { get; set; }
|
|
public String assignee { get; set; }
|
|
public String status { get; set; }
|
|
public String createdDate { get; set; }
|
|
public String updatedDate { get; set; }
|
|
public String description { get; set; }
|
|
public String url { get; set; }
|
|
}
|
|
|
|
/**
|
|
* Method to fetch JIRA issues (simulated for this example)
|
|
* In a real implementation, this would connect to JIRA REST API
|
|
* @return List of JiraIssue objects
|
|
*/
|
|
public List<JiraIssue> getJiraIssues() {
|
|
// Simulate fetching JIRA issues - in reality this would make HTTP callouts to JIRA API
|
|
List<JiraIssue> issues = new List<JiraIssue>();
|
|
|
|
// Create sample issues based on the existing Jira summaries
|
|
JiraIssue issue1 = new JiraIssue();
|
|
issue1.key = 'KAN-4';
|
|
issue1.summary = 'Implement Account Quick Create Feature';
|
|
issue1.priority = 'High';
|
|
issue1.assignee = 'John Doe';
|
|
issue1.status = 'In Progress';
|
|
issue1.createdDate = '2023-10-15';
|
|
issue1.updatedDate = '2023-10-20';
|
|
issue1.description = 'Implement a quick create feature for Accounts that allows users to create new accounts directly from the Account list view without navigating to a separate page.';
|
|
issue1.url = 'https://your-jira-instance.com/browse/KAN-4';
|
|
issues.add(issue1);
|
|
|
|
JiraIssue issue2 = new JiraIssue();
|
|
issue2.key = 'KAN-5';
|
|
issue2.summary = 'Update Account Quick Create Validation Rules';
|
|
issue2.priority = 'Medium';
|
|
issue2.assignee = 'Jane Smith';
|
|
issue2.status = 'Done';
|
|
issue2.createdDate = '2023-10-18';
|
|
issue2.updatedDate = '2023-10-22';
|
|
issue2.description = 'Update the validation rules for the Account Quick Create feature to align with the latest business requirements.';
|
|
issue2.url = 'https://your-jira-instance.com/browse/KAN-5';
|
|
issues.add(issue2);
|
|
|
|
return issues;
|
|
}
|