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

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
4,458,170
Community Members
 
Community Events
176
Community Groups

Jira Service Desk -> Insight: Change Integer Attribute automatically when custom field is updated

Hello Atlassian Community, 

I have the following question and hope to find some help with you guys :) 

Firstofall, I am using Insight (https://marketplace.atlassian.com/apps/1212137/insight-asset-management?hosting=datacenter&tab=overview) and Jira Service Desk for this question

Problem:
I created an issue type called "Car restauration" and this issue type has a custom field called: "Change motor" which is a radio button with two options:
1.) "Buy new motor"
2.) "Take motor from warehouse"

Apart from that, I have an insight object, which is called Warehouse and has an integer value called:
"Current inventory"

I would like to do the following now:
Whenever a user creates or updates the issue type "Car restauration" and picks the option 2.) "Take motor from warehouse" that the integer value from "Current inventory" gets reduced by one. 

Example
User creates "Car restauration"-issue type and selects "Take motor from warehouse", then the value of the "Current inventory" which would have a value of "10" before the operation, now has a value of "9". 

Steps, I have taken

I tried to do it with Insight´s automation, but the problem is I cannot access both the Jira issue type and the Insight object at the same time. 
Any solution to this question is welcomed, does not necessarily have to be with automation. 

 

Thank you very much in advance for your help!


 

2 answers

1 accepted

0 votes
Answer accepted

What about using a custom script listener (If you have Adaptavist Scriptrunner, that is)?

Usando una postfuncion de Insight te funciona 

image.png

Suggest an answer

Log in or Sign up to answer