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

Groovy script to get jira sprint state using behaviors

How to get sprint status using groovy script in behavior 

I am using field.state?.last()?.toString() but it is giving me error.

Can anyone help me on this 

1 answer

0 votes
Robert Bailey
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.
Nov 02, 2023

Hi @Vineela Durbha , 

Could you provide a little more context? Where are you trying to get this value? What is the use case?

Kind regards, 

Bobby

Hi @Robert Bailey 

I am trying to get sprint status of an issue using behaviors

So i am looking for script to get the same. I have written like 

sprintfield.state?.last()?.toString() but it giving me error

Also based on this sprint status (like say active) i have to make some fields read only in behavior 

Hi @Robert Bailey 

Any help on this would be greatful

Robert Bailey
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.
Nov 02, 2023

Unfortunately, currently you are unable to get the Sprint information for the issue you are creating, as the Sprint field is not a field that Atlassian have built in support for in the UI modification API.

We are trying to capture requests for certain system fields on our Nolt board here. This allows us to feedback to Atlassian which fields our users want to access to allow. 

I am sorry I cannot be of more help!

Bobby

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events