Create Automation in Jira Assets (Case: License reaches the End Date in 2 months)

Morten Dieckmann-Keden
Contributor
August 2, 2023

Hello,Screenshot 2023-08-02 165311.png

I have the same question only that the automation must be done in the asset section of Jira Service Management and not in the automation section of the project.
It is basically about a similar case with the license management issue. As a license manager, I want to get an overview or information when a license is close to the end date (expiration date).
I want to create an automation so that a Jira task is created when a license reaches the End Date in 2 months.
I have tried it so far as follows (see screenshot).

Thank you very much in advance.

2 answers

1 vote
Elmo Kuslap August 3, 2023

So, in assets there are a lot of attributes but in this case I will use only these:assets.png

Nimi means Name, Kaua litsents kehtib means How long is valid and Aegumise teavitus means Expiration notification and under that there are 4 options: 1 kuu, 2 kuud, 3 kuud and 4 kuud (these are 1 month, 2 months, 3 months and 4 months). Status Töös means used.

Second IF AQL:

objectType=Litsentsid and ("Kaua litsents kehtib">now() AND "Kaua litsents kehtib" <= now(30d) And "Aegumise teavitus" = "1 kuu" And Staatus = Töös) or ("Kaua litsents kehtib">now() AND "Kaua litsents kehtib" <= now(60d) And "Aegumise teavitus" = "2 kuud" And Staatus = Töös) or ("Kaua litsents kehtib">now() AND "Kaua litsents kehtib" <= now(90d) And "Aegumise teavitus" = "3 kuud" And Staatus = Töös) or ("Kaua litsents kehtib">now() AND "Kaua litsents kehtib" <= now(120d) And "Aegumise teavitus" = "4 kuud" And Staatus = Töös)

Morten Dieckmann-Keden
Contributor
August 3, 2023

Thanks @Elmo Kuslap
it does not work but it gives me a better understanding how it could work!
I now set it up like this (see the screenshot)

 

Screenshot 2023-08-03 113958.png

0 votes
Elmo Kuslap August 3, 2023

Hi
I have done this so (maybe it will help), that I have 3 statuses: used, extend and not used.
So once a day starts automation which look: objcetType = Licences and "How long is valid" <=now(30d) and "Expiration notification" = "2 month" and Status = used, THEN create jira issue and change attribute value.

Morten Dieckmann-Keden
Contributor
August 3, 2023

Hey @Elmo Kuslap
could you should me a picture how you set it up in Jira?

Elmo Kuslap August 3, 2023

It's not in english, but maybe it helps:

automation.png

Morten Dieckmann-Keden
Contributor
August 3, 2023

Hey @Elmo Kuslap
what language is it? :D
Could you maybe paste the AQL-Code in here so that I can translate it to english?
Thanks in advance!
You are a big help :)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events