Heads up! On March 5, starting at 4:30 PM Central Time, our community will be undergoing scheduled maintenance for a few hours. During this time, you will find the site temporarily inaccessible. Thanks for your patience. Read more.

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

Groovy script to get jira sprint state using behaviors

Vineela Durbha
Contributor
November 2, 2023

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
Bobby 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.
November 2, 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

Vineela Durbha
Contributor
November 2, 2023

Hi @Bobby 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

Vineela Durbha
Contributor
November 2, 2023

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

Vineela Durbha
Contributor
November 2, 2023

Hi @Bobby Bailey 

Any help on this would be greatful

Bobby 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.
November 2, 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