my company wants to manage their orders in jira. They want to have the parent issue contain a total budget and all the child tickets contain their costs which subtract from the total budget in the epic. Is this even remotely possible?
Hi @Scott Federman,
You can do this using the Power Scripts add-on.
There is a video tutorial walking you through in detail here, and we've also posted a short, sample script you can copy and paste or forward to your engineer.
Hope this helps!
Johnson
That was very helpful! Can this be used on other issue types like story as opposed to sub-tasks?
Scott
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Scott Federmanglad to hear it was hopeful :)
Yes, you can definitely modify this script so that it can be used between other issue types aside from just sub-tasks.
Hand the short script over to any engineer and they'll be able to quickly make the changes to the customfield IDs and logic for you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey All,
Still having some issues getting the rolling budget to work. Would anyone be able to possibly show my what script will work for this? Here is the set up.
Issue Types:
Custom Fields
Link Type: Relates To
Function: Budget-Expense = Remaining Budget
Scenario: A project budget is entered into the budget field in the project budget issue type. Expenses are entered into the Expense field in the Order request issue type and then linked to the project budget using the relates to link type. The Remaining budget field is calculated and returned based on the expense being subtracted from the budget.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Scott Federmandid you try this using the Power Scripts add-on, and following the video we recorded?
It should have addressed this exact use case for you, but let me know where you're still having challenges.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Johnson,
It addressed the issue whereas the child is a subtask. I am not using subtask however. It is a custom issue type of order request which is linked by "is related to". This will allow the user to create orders from the create screen instead of going into the "parent" issue and creating a subtask type which will eliminate a step for the user.
I unfortunately dont have anyone who can help me script this function so any direction you could provide would be massively helpful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Scott Federman if you would like assistance writing this script I would be happy to help. Just let me know.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Alexey
Thats great news! I unfortunately am not a programmer and totally illiterate when it comes to writing scripts. Could you give me an example to work from? It would be simple subtraction.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, it is possible if you have a plugin like Adaptivist Scriptrunner or similair. In Scriptrunner you could create a scripted field which would make the calculations.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.