Hey,
i have a groovy script that needs to read Information of an object out of Insight, but the User who is excicuting the Postfunktion dose not have access to our Insight.
Is there a way to get around that, and execute the script as admin?
def insightCF = issue.getCustomFieldValue(com.atlassian.jira.component.ComponentAccessor.getCustomFieldManager().getCustomFieldObject(10300))[0
def w_intervall ="0";
try {
w_intervall = objectFacade.loadObjectAttributeBean(insightCF.getId(), 60).getObjectAttributeValueBeans()[0].getValue().toString();
w_intervall = w_intervall.substring(0,2)
} catch (Exception e) {
w_intervall = "12"
}
So the script always runs into the exception if a user with out permission to read Insight runs the transition.
Greeting Till