I have some IDs (6 digit integer) and would like to understand which object they represent.
I am looking for something like:
Is there any such method? Or any alternative? Or are these IDs not accessible through the API? I can get the ID for a known object but apparently I can not select such an object initially by using the ID.
Thanks in advance! Carsten
import com.atlassian.jira.issue.Issue
import com.atlassian.jira.issue.IssueManager
IssueManager issueManager = ComponentAccessor.getIssueManager()
Issue issue = issueManager.getIssueObject(160778)
return issue.key
Thanks Payne! This pointed me into the right direction. Cheers, Carsten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't know of a way to do that.
Plus different object may end up with the same id.
You really need to understand the context first.
One could create a script that takes an id, then iterate through all the common object types and try to obtain each object type from the given id and return all the type/class of all objects that were found matching that ID. But that likely doesn't exist.
You might have more luck asking the community where your specific id came from by explaining where/how you got it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Peter, thanks, that's along the line I was thinking about - taking the ID and run it against the most common types as a tool to analyse issues. Will dig deeper into it. Cheers Carsten
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.