You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.user.ApplicationUser
import com.atlassian.jira.issue.IssueManager
import com.atlassian.jira.issue.UpdateIssueRequest
def environmentFI = getFieldById("customfield_11111")
def cfServic = getFieldById("customfield_222222")
String cfAreaValue = cfServic.getValue()
def cfServi = getFieldById("customfield_33333")
String cfServiceValue = cfServi.getValue()
def cfServ = getFieldById("customfield_44444")
String cfDirectionValue = cfServ.getValue()
def getInsightObject(String key) {
Class objectFacadeClass = ComponentAccessor.getPluginAccessor().getClassLoader().loadClass("com.riadalabs.jira.plugins.insight.channel.external.api.facade.ObjectFacade")
def objectFacade = ComponentAccessor.getOSGiComponentInstanceOfType(objectFacadeClass)
return objectFacade.loadObjectBean(key).id.toString()
}
if (cfServic.getValue().equals("EI-313333") && cfServi.getValue().equals("EI-323333") && cfServ.getValue().equals("EI-333333")){
//environmentFI.setFormValue(getInsightObject("EI-343333"))
environmentFI.setFormValue("EI-353333")
}
Problem
Script146.groovy:21 [Static type checking] - Cannot find matching method java.lang.Object#loadObjectBean(java.lang.String). Please check if the declared type is correct and if the method exists. @ line 21, column 12.
Unable to create automation. So that when creating a request, with certain selected fields, the remaining fields are filled
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.