Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how can i get workflow of current issue from edit issue?

Jee young-hoon May 16, 2018

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.

1 answer

1 accepted

2 votes
Answer accepted
Иван Кузнецов
Contributor
May 16, 2018

@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.

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 16, 2018

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)

Jee young-hoon May 16, 2018

image_201805170900.pngI 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.

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 17, 2018

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events