update field value linked issue
Hi @fcarmario I have a new problem and hope you can help me out. Is it possible to update field values of customfields of linked issues without overwriting existing values?
thanks,
best Regards Karsten
Comments (5)
-
repo owner -
reporter Thanks for your fast reply.
I try to give you a more detailed description: I have an Issuetype "Customer". Inside this "Customer Issue" I have 5 Multi-select customfields. At different times I need to create another issuetype "Sales Protocol" with the link "has Protocol" out of the "customer Issue". In the "Sales Protocol issue" I have the same 5 Multi-select customfields as in the "Customer Issue". Every Time I create a new "Sales Protocol Issue" I want to update the new values inside the parrent "Customer Issue" if they are not selected yet. At the end I want to see all values of the 5 fields, of the different "Sales Protocol issues" summarized inside the "Customer Issue".
I don't know which Postfunction I have to use and how to configure it.
hope you could help me with that.
Thanks a lot!
-
repo owner Hi @kweigel,
You can do it using "Write field on linked issues or subtasks" post-function in "Create Issue" transition of Sales Protocol issue's workflow with a configuration like this:
The configuration dialog for adding (target field - source value) pairs is used like shown:
where
%{13200}
is field code for Multi-Select 1 custom field in my particular JIRA instance. -
reporter - changed status to resolved
sorry, I forgot to close the issue. perfect as always!
-
repo owner You are welcome :)
- Log in to comment
Hi @kweigel,
Yes, it can be done.
If you want to set a multi-valued field, like Checkboxes, Multi-Select, Components, Affected Versions, Fixed Versions, etc, you should use prefix
+
for adding values, and-
for removing values.If you want to add values to a text field, you should compose a text using the current value of the field, i.e., inserting the field code of the field you are updating.
If you want to set a numerical or date-time field using its current value, you should use a math-time expression including the code for the numerical value of the field to be updated.
If you have doubts about how to do it, please give me more details about your needs, and I will give you a detailed description on how to implement it.