We need to update a custom field to a linked issue. Due to access rights we have the need to run this update as another user. How can we do this?
Hello
If you are using script runner, I think you can use IssueManager and method updateIssue
Try to pass your custom user as applicationUser:
<span><a href="https://docs.atlassian.com/software/jira/docs/api/7.6.1/com/atlassian/jira/issue/IssueManager.html#updateIssue-com.atlassian.jira.user.ApplicationUser-com.atlassian.jira.issue.MutableIssue-com.atlassian.jira.event.type.EventDispatchOption-boolean-" target="_blank" rel="nofollow noopener noreferrer">updateIssue</a></span>(<a href="https://docs.atlassian.com/software/jira/docs/api/7.6.1/com/atlassian/jira/user/ApplicationUser.html" title="interface in com.atlassian.jira.user" target="_blank" rel="nofollow noopener noreferrer">ApplicationUser</a> user, <a href="https://docs.atlassian.com/software/jira/docs/api/7.6.1/com/atlassian/jira/issue/MutableIssue.html" title="interface in com.atlassian.jira.issue" target="_blank" rel="nofollow noopener noreferrer">MutableIssue</a> issue, <a href="https://docs.atlassian.com/software/jira/docs/api/7.6.1/com/atlassian/jira/event/type/EventDispatchOption.html" title="interface in com.atlassian.jira.event.type" target="_blank" rel="nofollow noopener noreferrer">EventDispatchOption</a> eventDispatchOption, boolean sendMail)
https://docs.atlassian.com/software/jira/docs/api/7.6.1/com/atlassian/jira/issue/IssueManager.html
It looks like you're new here. Sign in or register to get started.