You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi guys !
I'm Jira and I'm going to make a furniture sale, so I want the employees to be able to create tickets and choose the furniture they want to buy. So I created a custom Insight field that calls for objects in insight called "Desk", "Chair", "Lamp" and "Cabinet". These objects have a key "CI-11453" for the chair, "CI-11454" for the desk, "CI-11451" for the lamp and "CI-11452" for the box.
All these objects have an attribute "remaining stock", I would like that when a ticket is created with one of the furniture that its remaining stock decreases by 1 for each ticket. I want that when the stock reaches 0 for this object it is no longer possible to select it.
I already tried to add a groovy post insight function but nothing works, how to do