Edit issue returns only null.
Can I get the workflow status of current issue from Edit issue?
I want to change the state of customfield in case of a specific workflow using scriptrunner.
@Jee young-hoonplease clarify detailed what you want.
If you want to change issue status from edit screen - no, the status field cannot be edited without workflow transition.
You can install Automation addon and configure it to auto-change issue status by some event. For example if you input value to some field, Automation will be change issue status.
Reading status in a script can be as simple as issue.getStatus(), but it depends on where the script is running.
Writing a status should only ever be done by scripts that are creating issues during an import of some form. In all other cases, an issue should move through transitions (which will update the status correctly for you)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am sorry for the lack of description.
What I want is to change the status of customfield according to the workflow on the screen edit issue.
but, Screen like image : issue = null, getAction() = null, etc....
All the variables and functions I know returns null value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This will not work. You can't change the status from edit.
You need to transition the issue, during which you can ask for edits, but Status is not a field you can change.
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.