Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Get updated issue status using script runner

When I am trying to below code
def getModifiedFields = "";
MutableIssue Issue = issue;
getModifiedFields =Issue.getStatus() ("getStatus== " + getModifiedFields)

I want updated status as In Progress instead of To Do


IssueConstantImpl[[GenericEntity:Status][sequence,7][statuscategory,2][name,To Do][iconurl,/][description,][id,10000]]


1 answer

0 votes

Where do you execute the script?

Try to get a reference to the current state of the issue


I am not getting updated status

I am executing on script post function on In Progress Workflow

You post function should be last in the list of post functions.

I am trying to sending data from jira to external system using json script post function

Could you please help me

Thanks Alexey Matveev COMMUNITY CHAMPION,

your answer is really help me :) now I am getting status.

And I am getting OK response on calling web service. 

but  I want to check content 

how to check content?

Could you please help me?



What content do you want to check?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Do you use Jira Cloud with Microsoft Teams?

Hi, Jira users! Do you use Jira alongside Microsoft Teams? We want to hear how you’ve used the power of Jira Cloud and Microsoft Teams (via the Jira Cloud for Microsoft Teams app) to achieve a team...

122 views 0 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you