Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation for Jira question

Chris Melville
Contributor
March 17, 2020

I am new to Automation for Jira and trying to determine if it is possible to solve this problem...

I want to compute the value of a custom field in an issue based on the values of fields in one or more subtasks.  In this case, the parent has a field for "Average" that should be computed from each of the sub-tasks, which contain a single value.

Is this even possible with the plug-in?

Specifically:

- Issue type A which contains the fields "Average", "STDDEV", "MIN", "MAX"

- Subtasks of A contain a field "Value"; there may be one or more subtasks, hence an unknown number of values to include

- The task is to update the custom fields in Issue A with the computed average of the values in all subtasks.  So, if there are 3 subtasks, we would have the average of all three values.

Concerns:

- It does not appear possible to reference the value of a field in a subtask to use as part of a computation.  If I use a branch to loop over subtasks, I cannot access the other subtask values that are needed for the computation.

 

2 answers

0 votes
Chris Melville
Contributor
March 23, 2020

I would love to see an answer to this question.  I suspect there is a way to solve this but I can't figure out how yet.

0 votes
GS1337
Contributor
March 18, 2020

The question is a bit confusing but yes this should be possible, you can work with "if / else" or "custom field" condition and do different things based on the value of the custom field

Suggest an answer

Log in or Sign up to answer