Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Get updated issue status using script runner


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

I want updated status as In Progress instead of To Do

O/P

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

 

1 answer

Suggest an answer

Log in or Sign up to answer
1 vote
Alexey Matveev
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 18, 2018

Where do you execute the script?

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

ComponentAccessor.getIssueManager().getIssueObject(issue.getKey()).getStatus()

I am not getting updated status

I am executing on script post function on In Progress Workflow

Alexey Matveev
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 18, 2018

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?

 

 

Alexey Matveev
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 20, 2018

What content do you want to check?

TAGS
AUG Leaders

Atlassian Community Events