Jira 7.13.1 is showing the message, that "A vlue with ID '10123' does not exist for the field 'project'. I need to find the name of the project.
I have the add-on ScriptRunner installed. Is it possible to use the script console and find the project name by passing the project ID? I assume yes, but how does the code look like?
Thanks a lot in advance for any help!
Try this :
import com.atlassian.jira.component.ComponentAccessor
def projectManager = ComponentAccessor.getProjectManager()
def project = projectManager.getProjectObj(10123)
log.error(project.getName())
Great! It worked. Thanks a lot!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.