I'm trying to take the value from a custom number field in project 'A' and pull that in to a custom number field in project 'B' on Jira sever. This is how we currently work:
Project A > EPIC - total budget e.g. 4000
Project A > STORY - reflect the part of total budget (below)
Project B > CHANGE TICKET (in other project) - part of total budget e.g. 1500
The figure in project B should be the same, and updated when changed, to the custom field in project A Story.
This calculation should only take place if the ticket in Project B is a linked issue of the story in project A
It should be a simple "get custom field value for X from issue Y", and then "expose it on to issue Z", which are things people do with Scriptrunner all the time.
https://library.adaptavist.com/entity/copy-field-value-from-linked-issue is probably a good starting point, although we don't know if a scripted field might be better or how you are choosing which issues to work with.
Hi @Nic Brough -Adaptavist- it says in the documentation that it should be installed as a workflow post function. Does this mean that it will only come in to effect once a transition has been made in the workflow and not if a change is made at any point in the linked ticket?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, that's what a post-function will do, run during a transition.
You did not tell us when you wanted this field update to happen, so we couldn't tell you a lot more. However you want to do it, the code in the post-function is a good starting point.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.