Ephemeral String 1 does not get set on Create Issue Transition
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)
-
reporter -
reporter Here is the email from Create Issue Transition Post Function
-
reporter Here is the email from Close Issue Transition Post Function
-
repo owner Hi Hughes,
Try moving post-function "Fire a Issue Created event..." to last position in execution order.
-
reporter Hi, I tried that and I still get an empty list.
-
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:
Email sent:
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.
-
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.
-
repo owner Please, try removing 2nd post-function (i.e., the one from Intenso's plugin), and let me know what happens.
-
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.
-
repo owner Hi,
Try the following solution:
-
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.
-
Remove post-function 5 and 6 of "Create Issue" transition, and them to "After Creation Actions" transition. I mean the following post-functions:
- Add "Transition is triggered by JIRA Workflow Toolbox post-function" condition to "After Creation Actions" transition.
- 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.
-
-
reporter I must be missing something, now i am not even getting an email. See images of Post functions
-
reporter Create Issue
-
reporter New Transition Condition
-
reporter New Transition Post Function
-
repo owner @zarco44, please, move post-function for firing the event to last position in execution order in both transitions.
-
reporter Thank you it is now working. Please close this request
-
reporter - changed status to resolved
- Log in to comment
Here are the screen shots of the Post function![Create Issue Post Function 001.png](https://bitbucket.org/repo/Lob6o9/images/1541420467-Create%20Issue%20Post%20Function%20001.png)