Hey Folks,
I want to update a DateTime Field of an Insight Object with an groovy script.
But the following code does not work:
Date now = new Date(System.currentTimeMillis())
Class objectFacadeClass = ComponentAccessor.getPluginAccessor().getClassLoader().findClass("com.riadalabs.jira.plugins.insight.channel.external.api.facade.ObjectFacade")
ObjectFacade objectFacade = ComponentAccessor.getOSGiComponentInstanceOfType(objectFacadeClass)
objectFacade.loadObjectAttributeBean(782, 1626).createMutable().getObjectAttributeValueBeans()[0].setDateValue(now)
Maybe you could tell me how I have to change the code to get it working.
Why does the setDateValue() Method not update the field?
It does not work with Inteager Fields either.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.