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

Automation label text

I would like to perform automation every 2 week to increment labels numbers, exmaple:

if label contains "WW" (i.e. full label: "WW47-48/2023") i would like to remove it and create and apply the incremented label "WW49-50/2023".

PS

i managed to do a scheduled automation, just need to figure out the labels

 

2 answers

Comments on this please:

1.png2.png3.png

0 votes
Alexis Robert
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 16, 2023

Hi @Tamir Melamed , 

 

this is a bit more complicated than it looks because you need the Smart Value to identify the week number in the label, and then increase it.

I have not tested this, but you could try and see if this works for example : 

 

"WW" + ({{issue.labels.first.match("WW(\\d+)-\\d+/\\d{4}")[1]}} as number + 1) + "-{{issue.labels.first.match("WW\\d+-(\\d+)/\\d{4}")[1]}}/{{issue.labels.first.match("WW\\d+-\\d+/(\d{4})")[1]}}"

 

You might need to adapt it if that doesn't work exactly as expected.

 

Let me know if this helps,

 

--Alexis

would it work:


{
"update": {
"labels": [
{
"add": "WW{{now.addWeeks(1).format("WW")}}-{{now.addWeeks(2).format("WW")}}/{{now.format("YYYY")}}"
}
]
}
}

 

?

Suggest an answer

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

Atlassian Community Events