Scriptcase view record on grid3/15/2024 ![]() ![]() ![]() Object userObject = jiraAuthenticationContext.getLoggedInUser() ĪpplicationUser applicationUser = userObject instanceof ApplicationUser ? (ApplicationUser) userObject : om(userObject) JiraAuthenticationContext jiraAuthenticationContext = ComponentAccessor.getOSGiComponentInstanceOfType(JiraAuthenticationContext.class) Long tgeDestinationCustomFieldId = tgeDestinationCustomField.getIdAsLong() Log.error("Destination grid '" + tgeDestinationCustomFieldName + "' is not found") Long tgeSourceCustomFieldId = tgeSourceCustomField.getIdAsLong() ĬustomField tgeDestinationCustomField = customFieldManager.getCustomFieldObjectByName(tgeDestinationCustomFieldName) Log.error("Source grid '" + tgeSourceCustomFieldName + "' is not found") PluginAccessor pluginAccessor = ComponentAccessor.getPluginAccessor() ĬustomFieldManager customFieldManager = ComponentAccessor.getCustomFieldManager() ĬustomField tgeSourceCustomField = customFieldManager.getCustomFieldObjectByName(tgeSourceCustomFieldName) String tgeDestinationCustomFieldName = "TGE_DST" String tgeSourceCustomFieldName = "TGE_SRC" configuration (update it to match your JIRA settings) * - tgeDestinationCustomFieldName - name of the destination grid custom field * - tgeSourceCustomFieldName - name of the source grid custom field In other case addRows() API call will throw an appropriate error. * Grids should have the same set of columns. * Copies data from source grid to destination grid. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |