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

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,455,374
Community Members
 
Community Events
175
Community Groups

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

1 vote

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

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
TAGS

Atlassian Community Events