Forums

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

Jira Automation Create New Label

Don.Sevcik April 8, 2020

I'm in the Jira Automation section and I select "Scheduled" as a trigger.

I see I can do something every 30 days. I'm wondering if I can do it on the first of the month.

Also, I'd like to know how to create a new label.

on the first of every month, or every 30 days, I want to create a new label of:

Month (in words) underscore "Release". 

So on May 1, I'd want a new label automatically created for my project called:

May_Release

2 answers

1 accepted

0 votes
Answer accepted
Ste Wright
Community Champion
April 10, 2020 edited

Hi @Don.Sevcik

Your Cron will create the issue at 08:15:00am, on the 1st day, every month. I create that as 0 15 8 1 * ? * - but I think both should work

You'll need to create at least one issue with the action - for a label to be active, it needs an issue to live on.

This is how I did it:

Trigger:

  • Scheduled
  • Use Cron Expression - 0 15 8 1 * ? *
  • When Rule Executes - run a JQL search and pass results to subsequent conditions and actions
  • JQL - key = TEST-123

Action:

  • Create Issue
  • Field - Labels
  • Advanced (Additional Fields) - see below:
{

    "update": {

        "labels": [

            {

                "add": "{{now.format("MMM")}}_Release"

            }

        ]

    }

}

 

^ Save and publish the rule.

I chose to create the label on one issue - perhaps a test issue or a training issue. Labels are platform-wide, so it doesn't have to be in created in your project.

I also formatted as "MMM" but you could make this a number or similar depending on what you want.

To do this I used Smart Values - Date and Time Functions and Advanced Field Editing - JSON

Let me know if you need any further help.

Ste

Don.Sevcik April 16, 2020

Thank you!

Like Ste Wright likes this
0 votes
Don.Sevcik April 8, 2020

I think we want this as a cron expresion:

 

0 15 8 1 * ?

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, confluence, loom, atlassian intelligence, ai notes, ai-powered meeting notes, atlassian community events, ace, confluence ai, loom ai integration, ai note-taking, atlassian ai features, team '25, atlassian live learning, confluence automation

Unlock AI-powered meeting notes: Join our live learning session! 📹

Did you catch the news at Team ‘25? With Loom, Confluence, Atlassian Intelligence, & even Jira 👀, you won’t have to worry about taking meeting notes again… unless you want to. Join us to explore the beta & discover a new way to boost meeting productivity.

Register today!
AUG Leaders

Atlassian Community Events