Hi,
i was wondering how i could add total on the issues screen. For example on my issue screen i have a field called quantity. how could i add i sum total to this field that would be viewable on this screen?
jon
You'll need some code to work it out for you and put it in a field.
However, fields belong to the current issue, so a big question is what are you trying to add up?
The field is for quantity of contracts. WE have many contracts so many figures to add up. Im often using filters to refine the list but need to know the total after the appropriate filters are in place.
How difficult is the code work? Too much for a novice?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's rarely too difficult for a novice! Most of us use scripting add-ons that strip away the need for full-blown development.
It's clear what you want to add up, but my question was more aimed at thinking about where you want to do this.
An issue is a representation of something that needs attention for some reason. It's made up of fields that directly relate to that issue. If you have a field called "quantity" on an issue, then that probably gives you a numerical quantity of <somethings> for that issue, which is fine.
But you're asking to add up some values. My question is what, and where should it go?
Imagine I'm using Jira for billing something. Every issue has a "cost". It's perfectly reasonable to want to add up a list of costs, but, where? If an issue has sub-tasks, then representing the sum of costs on the subtasks on their parent is usually very useful, but I'm not sure that is what you mean here?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for all this. I would want this new field quantity delivered on the contract screen. The way I have set things up is that I have two separate types of issues, one called contracts which includes the quantity that has been sold and the other is quantity delivered. The quantity delivered per each issue varies as well as the contract size so the number of issues that need to be applied to satisfy a contract very greatly. I’ve been linking the quantity delivered issues to the appropriate contract however the only thing that shows up on this screen Is the reference number to the link issue so it takes much too long to add up everything.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, that sounds similar to my sub-task example I think. To confirm, I'll paraphrase a spec back to you:
If that is correct, then there's a couple of things I would look into.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
is this hack available for jira cloud? id be happy to get script runner if it would work in cloud. i would need guidance to set up a listener.
thanks for the help,.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm afraid not, it's in the deployed system (I almost said "code" there - it's not quite code), which you can't change on Cloud.
ScriptRunner does work in Cloud, with some limitations imposed by the platform (for example, Cloud can't yet support conditions or validators)
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.