Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Create Jira Issue with Groovy Script via Insight Automation


Hi All, 

This is similar to the topic here: 


I am facing issues as well with respect to creating an issue via Insight Automation as the "Create jira Issue" is insufficient for my usage. My script works well in scriptrunner but fails in Insight Automation. 


 def attributeBean = objectFacade.loadObjectAttributeBean(objectId, attributeName)
def attributeValues = attributeBean.getObjectAttributeValueBeans()
def attribute = attributeValues[0].value
return attribute

The above code is what was used to obtain my attribute value. However it returns null when i am obtaining an attribute which is an object from another schema. 


In addition, i am unable to create an issue using the following code: 

def newIssue = issueFactory.getIssue()
issueManager.createIssueObject(reporter, newIssue)

The error i encounter is:

com.atlassian.jira.exception.CreateException: com.atlassian.jira.workflow.WorkflowException

 May i know how to obtain an attribute which is an object as well as to create issue in Insight Automation? Many thanks for the kind assistance in advance. 



Log in or Sign up to comment
Community showcase
Posted in Jira Service Management

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

198 views 0 5
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you