Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Create Jira Issue with Groovy Script via Insight Automation

Edited

Hi All, 

This is similar to the topic here: https://community.atlassian.com/t5/Jira-Service-Management/Create-Jira-Issue-with-groovy-script-in-Insight-automation/qaq-p/1853773 

 

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. 

0 comments

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events