Hi.
- I made a plugin which uses the grasshopper plugin. It seems to have stopped working in Jira 7.3. I have read that one should now use the software api instead. Can you provide me to an example how to use the software api from within a plugin? Or maybe to an migration example from grasshopper to the software API?
Here is an example of code based on grasshopper. How would I implement that via software api?
SprintCustomFieldService sprintCustomFieldService = getSprintCustomFieldService();
if (sprintCustomFieldService != null) {
CustomField customFieldObject = sprintCustomFieldService.getDefaultSprintField();
Object customFieldValue = issue.getCustomFieldValue(customFieldObject);
if ((customFieldValue != null) && ((customFieldValue instanceof ArrayList))) {
ArrayList sprintArrayList = (ArrayList) customFieldValue;
if (sprintArrayList.size() > 0) {
String result = "";
Sprint sprint = null;
for (int i = 0; i < sprintArrayList.size() - 1; i++) {
sprint = (Sprint) sprintArrayList.get(i);
result = result + sprint.getName() + ";";
}
sprint = (Sprint) sprintArrayList.get(sprintArrayList.size() - 1);
sprintObjNode.put("name", sprint.getName());
sprintObjNode.put("id", sprint.getId());
}
}
}
- Is there a live chat for jira developers somewhere? Something like Slack?