Hello,
I am trying to create a scheduled job with scriptrunner, where at one specific time in a year, emails are send to specific assignees of certain tickets. Additionally I want a Custom Field (soseCustomField) to match a specific value (aktiv) and only then, send the mail. But unfortunately I didnot even manage to Define the issue without errors.
Hi,
When you use
issue.getIssueObject()
this will return an object from mutableIssue and not from Issue
And you forget to pass a parameter in you getIssueObject method.
So you code should look like this
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.IssueManager
import com.atlassian.jira.issue.Issue
import com.atlassian.jira.issue.MutableIssue
IssueManager issueManager = ComponentAccessor.getIssueManager()
MutableIssue issue = issueManager.getIssueObject(10000)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.