Connect a project to itself, to calculate a field value

Originally asked by Dimitri Bigler on 30 March 2021 (original question)


Hello,

We are currently trying to automatically calculate a Field called “RPN”. This field is calculated like this (occurence * severity).

This usecase is easy to do, if you calculate this field across 2 different project. Our usecase would be to connect an Issue with itself (localproject connected with localproject). Means we don´t want to create a new Issue in the project, we want to establish a connection from issue ABC-12 to ABC-12.

That way our Outgoing sync could be:

replica.customFields.“occurence” = issue.customFields.“occurence”
replica.customFields.“severity” = issue.customFields.“severity”

And our Incomming sync could be:

issue.customFields.“RPN”.value = (replica.customFields.“occurence”.value * replica.customFields.“severity”.value)

Right now exalate always wants to create a new issue, it seems it is not possible to connect an issue to itself. Did someone already do it?


Answer by Francis Martens (Exalate) on 31 March 2021

This is not supported by Exalate. I gave it a quick try (there could be a path) but it triggers a number of problems.

You would be better of to use an add-on like scriptrunner to implement this type of usecases.


This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.