How can i add an #Assignee# without overwriting the old #Assignee# in a customfield

Issue #17 resolved
Sven Hock created an issue

Hi Support,

I created a project with the following permission requirements.

If someone gets assigned to a sub-task, he/she cannot see the parent issue.

In order for this someone to see the parent issue, the assignee is put into the custom field "IM-Hauptaufgabe zusätzlich sichtbar für" during the creation of the sub-task.

Being in this field allows the person to browse projects.

Being in this field allows the person to browse projects.

This also allows the assignee of the sub-task to see the parent issue.

And this works without any problems.

However, once I have more than one subtask, this custom field is overwritten, meaning only one of the sub-task assignees can see the parent issue.

What I need is a custom field where I can ADD new assignees from sub-tasks instead of REPLACING them when I create new sub-tasks. Sort of like a multi-value field for persons.

Example:

-‭ ‬Issue Assignee is Mr.A

Mr.A create more subtasks now

--‭ ‬Subtask Assignee is Mr.B‭ (‬in background copy User Mr.B in the field‭ "‬IM-Hauptaufgabe zusätzlich sichtbar für:‭" )

--‭ ‬Subtask Assignee is Mr.C‭ (‬in background copy User Mr.C in the field‭ "‬IM-Hauptaufgabe zusätzlich sichtbar für:‭" )

--‭ ‬Subtask Assignee is Mr.D‭ (‬in background copy User Mr.D in the field‭ "‬IM-Hauptaufgabe zusätzlich sichtbar für:‭" )

I need in field‭ "‬IM-Hauptaufgabe zusätzlich sichtbar für:‭" ‬this value now

Mr.B,Mr.C,Mr.D,

I hope this was less confusing :P

Regards, Sven

.

Comments (7)

  1. Fidel Castro Armario repo owner

    By your description, I suppose field IM-Hauptaufgabe zusätzlich sichtbar für is on parent issue. Isn't it?

    I don't know exactly the details of your implementation, but in case you can use type Multi User Picker for customfield IM-Hauptaufgabe zusätzlich sichtbar für you can use post-function Copy parsed text to a field to copy text %{51400}, %{00003} into field IM-Hauptaufgabe zusätzlich sichtbar für on parent's issue, provided %{51400} is the field code for custom field IM-Hauptaufgabe zusätzlich sichtbar für in parent's issue.

    Exactly you have to insert post-function Copy parsed text to a field in transition "Create Issue" on subtask's workflow, using the configuration shown in the following screenshot:

    Post-function configuration.

    Once configured, transition Create Issue will look like this:

    Post-function configuration.

  2. Sven Hock reporter

    Hi fcarmario,

    thanks for help.

    I made a video for my problem. Link to Video I hope this will help you?

    The password for the zipfile have send you as directmessage.

    Best regards, Sven

  3. Fidel Castro Armario repo owner

    Hi Sven,

    First of all, I recommend you to move all post-function in transition "Create" below (or after) transition "Creates the issue originally". In your video you insert post-function "Copy parsed text to a field" before that post-function (at time 3:20 in your video). Nevertheless, in your case this is not the problem since you are writing on parent's custom field, and this issue is obviously already existing.

    An important information lacking in your video is which type custom field "IM-Hauptaufgabe zusätzlich sichtbar für" is. In case it is a Multi User Picker, the solution I described in my first comment to this issue should work. Have you tried it?

    Regards,

    Fidel.

  4. Sven Hock reporter

    Hi Fidel,

    we made a checkup of the config.

    We have tested the workflow again.

    We have the same problem.

    The new "Assignee" overwrites the old "Assignee".

    We need a "ADD" function.

    Thanks for your help.

    An new video here for you.

    Password is the same.

    Link to new video

    Regards, Sven

  5. Fidel Castro Armario repo owner

    Hi Sven,

    It's really strange. That solution is working perfectly to me on JIRA 6.1. Which version of JIRA are you using?

    Try the following:

    1.- Replace selected target field on post-function "Copy parsed text to a field" with virtual field "Ephemeral string 1" (field id %{00061}).

    2.- Insert a new post-function "Copy parsed text to a field" after the current one. This post-function simply will copy the value in virtual field "Ephemeral string 1" into custom field "IM-Hauptaufgabe zusätzlich sichtbar für".

    If this doesn't fix the problem, I'm available for a Skype meeting from 15:00 UT.

    Regards,

    Fidel.

  6. Log in to comment