someone knows any method to get current editting/resolving/closing issue's object?
or can we use javascript to get the issue's id ?
my jira version is jira 4.4.1
Community moderators have prevented the ability to post new answers.
Hi Fabby ,
Try the below code
Object id = getFieldById("id") MutableIssue missue=ComponentManager.getInstance().getIssueManager().getIssueObject(Long.parseLong(id.value))
Better to use getUnderlyingIssue() assuming you're using a recent version.
The other examples will work, but will fail with a null pointer exception if the script is on create.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try this
def issueId = formContents["id"]
def issue = componentManager.getIssueManager().getIssueObject(issueId as Long)
This will fetch "Issue " Object
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.