update field value linked issue

Issue #771 resolved
DVSE_Syncuser created an 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)

  1. Fidel Castro Armario repo owner

    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.

  2. DVSE_Syncuser 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!

  3. Fidel Castro Armario 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:

    Captura de pantalla 2017-08-30 a las 14.24.08.png

    The configuration dialog for adding (target field - source value) pairs is used like shown:

    Captura de pantalla 2017-08-30 a las 14.26.49.png

    where %{13200} is field code for Multi-Select 1 custom field in my particular JIRA instance.

  4. Log in to comment