Script Runner Version 7.8.0
Table Grid Next Generation 1.13.8-jira89
I created a listener to fire on Issue.Updated to have the columns of my grid updated with the values of jira customfields when the user updates those jira customfields
Per documentation on Get GridService
PluginAccessor pluginAccessor = ComponentAccessor.getPluginAccessor()
Class apiServiceClass = pluginAccessor.getClassLoader().findClass ("com.idalko.tgng.jira.servier.api.Gridservice")
I get the error when using .findClass (cannot find mathing method java.lang.Object#call(java.lang.string)
if I use -Class apiServiceClass = pluginAccessor.getClassLoader().loadClass("com.idalko.tgng.jira.servier.api.Gridservice" ("com.idalko.tgng.jira.server.api.Gridservice") the error goes away
This is the same behavior for get GridRow Class I get the error if I use .findClass
Class gridRowClass = pluginAccessor.getClassLoader().loadClass("com.idalko.tgng.jira.servier.api.Gridservice" ("com.idalko.tgng.jira.servrt.api.GridRow")
So When I am defining Read field Data
def fieldData = gridService.readFieldData (readFieldData is not available?)
How do I fix this?
Also the example I reviewed is getting the field data for a specific issue, I need to get the issue Id for each issue
Below is how I am getting the issue id
def issue = event.getIssue()
IssueManager issueManager = getOSGiComponentInstanceofType(ustomfieldManager.class)
Long issueID = issue.getId()
I tried using
IssueManager issueManager = getOSGiComponentInstanceofType(ustomfieldManager.class)
Issue issue = issueManager.getIssueObject()
Long issueID = issue.getId()
it doesn't like Issue issue = issueManager.getIssueObject()
What is the correct way to get the issue ID for a listener that is accessing and updating Table Grid Data
Is using Update Rows the correct code to update a column from a Jira Customfield?
We can't help you with a statement like that. I could say "I want a kitten", and you would not be able to help me because you don't know why I have not gone and got one myself.
You need to tell us what you are doing and maybe what the error is.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.