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

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


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


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!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Software License Count automation issues

I am trying to automate incrementing and decrementing of software licenses whenever a user is assigned/provided with the software.  We currently have attributes for Available, InUse, and Total relating to license counts.  


Right now, we are using the following to try and get this working, with little success.

When an object is updated, the InUse attribute is set to equal the number of Users associated with the object. 

     Attribute InUse set to {{object.User.size}}

One of the issues we are having is that this will return (InUse = '') in the audit log.

I have tried using {{#=}}{{object.User.size}} + 0{{/}}, but this seems to sometimes just return a 0, even when it should be adding to it.


Additionally, we are having trouble getting this to populate properly and adjust the Available attribute count.

    Attribute Available set to {{#=}}{{object.Total}} - {{object.User.size}}{{/}}


Any help would be appreciated, as object automation info seems to be on short supply

1 answer

1 accepted

0 votes
Answer accepted
Simmo Atlassian Team Feb 14, 2022

Hi @Matthew Rutledge,

If you're trying to have a default value for when it doesn't exist you can do:


Which should default this to 0 if the value doesn't exist.



Suggest an answer

Log in or Sign up to answer

Atlassian Community Events