Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Fill the open sprint in custom field by Automation

Aurélie Pilette
Contributor
September 25, 2024

Hello,

I would like that a field contains the actual Opensprint when the issue is created.

For that : 

- I create a custom field (a short text)

- Like I have already an automation rule, I modify it

I see by search that I can use :

{{#issue}}{{#sprint}}{{#if(equals(state,"active"))}}{{name}}{{/}}{{/}}{{/}}

But when I create an issue, my custom field stay empty

So i would like to know what is wrong on my automation.

Thanks a lot2024-09-25_09h06_58.png

 

1 answer

0 votes
Bill Sheboy
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.
September 25, 2024

Hi @Aurélie Pilette 

Please post an image of the audit log details showing your rule execution.  That will provide more context.

For the issue your rule is trying to update, does the Sprint field already have the value selected?  The smart value expression you show will only provide the current sprint if it was already selected in the Sprint field.

Kind regards,
Bill

Aurélie Pilette
Contributor
September 25, 2024

Hello,

My rule : 

2024-09-25_18h28_56.png

 

The log said that it works

 

2024-09-25_18h27_34.png

 

But my field (which is a shot text is emtpy while it must have the opensprint value = 13.24

2024-09-25_18h29_37.png

 

Like the sprint value

 

2024-09-25_18h29_37.png

 

Note: when we create the ticket, the sprint value by default is "Bugs" and I can(t copy srpint value field.

But in right, i have several sprint open : 

bug

friday

Sprint13.24

and I would like that the field has the value Sprint13.24. But i can't write 13.24 because next month, it will 14.24, and then 15.24....

Bill Sheboy
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.
September 25, 2024

The expression you show will work if there is a list of issues and not a single one.  Please try this one which only iterates over the sprint values for a single issue:

{{#issue.sprint}}{{#if(equals(state,"active"))}}{{name}}{{/}}{{/}}

 

Suggest an answer

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

Atlassian Community Events