Ephemeral String 1 does not get set on Create Issue Transition

Issue #539 resolved
AndreH created an issue

I am using the Ephemeral String 1 to copy a list of all attachments in the issue. On the Post Function of Create Issue

1.) I first Copy a parsed text to a Field Function. ("<ul>" + toString(textOnStringList(toStringList(%{00071}), "<li>" + ^% + "</li>"), "") + "</ul>")

2.) Next, I send an email with the Ephemeral String 1 as a list of the attachments. <p><b>Attachments:</b> {00061}</p>

The issue is that the Post Function on Create Issue, only sends a Empty list of attachments. It works fine as a Post Function in Close Issue, the list is send in the email as expected.

Comments (17)

  1. Fidel Castro Armario repo owner

    Hi Hughes,

    Try moving post-function "Fire a Issue Created event..." to last position in execution order.

  2. Fidel Castro Armario repo owner

    I have tested a configuration similar to yours in JIRA 7.3.2 and JIRA Workflow Toolbox 2.2.33, and it works correctly, as shown in the screenshots:

    Captura de pantalla 2017-03-09 a las 22.32.52.png

    Email sent:

    Captura de pantalla 2017-03-09 a las 22.31.49.png

    It also works with post-function for triggering the event at the end of the execution list. BTW, that's the correct position for that post-function.

    Which version of JIRA and JIRA Workflow Toolbox are you using?

    Is it also possible that field attachments is empty. Try including it directly in the body of the email, and tell me if the comma separated list of file names appears.

  3. AndreH reporter

    Hi, It is JIRA 7.3.1 and JWT 2.2.33

    I am creating the items myself with attachments within JIRA and they still don't get set in the create post function.

  4. Fidel Castro Armario repo owner

    Please, try removing 2nd post-function (i.e., the one from Intenso's plugin), and let me know what happens.

  5. AndreH reporter

    I removed the 2nd post function from intenso's plugin and tested again, still does not work.

    Here is what I found:

    1.) No attachment names when using, CLONE or Issue Collector submission 2.) Attachment names DO come through when you use the CREATE button.

    So, I have been using CLONE and Issue Collector to test, and this is why I haven't been getting any attachment names.

    Is there a timing issue when using CLONE or the Issue Collector? Because it only works when you create an issue via the CREATE button.

  6. Fidel Castro Armario repo owner

    Hi,

    Try the following solution:

    1. Create reflexive transition called "After Creation Actions" in Open status. This transition has Open as origin and destination status, this it doesn't change status, only is used for executing post-functions.

    2. Remove post-function 5 and 6 of "Create Issue" transition, and them to "After Creation Actions" transition. I mean the following post-functions: Captura de pantalla 2017-03-10 a las 18.09.59.png

    3. Add "Transition is triggered by JIRA Workflow Toolbox post-function" condition to "After Creation Actions" transition.
    4. Add "Copy a parsed text to a field" post-function to "Create Issue" transition with the following configuration:
    • Target field: Execute transition (delayed execution)
    • Parsing mode: basic
    • Text to be parsed: After Creation Actions

    Post-function for firing the event should be executed the last, in both transitions: "Create Issue" and "After Creation Actions".

    Please, let me know if this solution solves your problem.

  7. AndreH reporter

    I must be missing something, now i am not even getting an email. See images of Post functions

  8. Fidel Castro Armario repo owner

    @zarco44, please, move post-function for firing the event to last position in execution order in both transitions.

  9. Log in to comment