Cannot write transitions comment from customer portal to linked issues

Issue #570 resolved
Patrick Schuh [brainbits] created an issue

Hi Fidel,

again I'm getting nut... ;-)

I'm trying to write the comment given by a customer within the portal to linked issues during an transition. I use the JSD Actions AddOn to provide a Transition-button and a transition screen with a comment field on the customer portal.

Using that button everything works fine:

  1. The transition is run
  2. The comment is added to the issue

I'm also able to access all linked issues via "Write field on linked issues or subtasks Function" and write a new comment. But nether I can access the just eneterd comment by {00109} (Last COmment) not by %{00127} transition comment.

I also tried to play around with the sorting of my post functions, but %{00127} transition comment is always empty and {00109} (Last Comment) returns the previous entered comment.

Please see attached screens.

Comments (11)

  1. Fidel Castro Armario repo owner

    Hi Patrick,

    I can give you a workaround, only if a comment is always entered when that transition is executed from the portal.

    Is the comment mandatory or optional?

  2. Patrick Schuh [brainbits] reporter

    I have the same issue with the status of the linked issues. I'm not able to set the status to "Geschlossen" via "Write field on linked issues or subtasks Function". However, setting the resolution works pretty fine...

  3. Fidel Castro Armario repo owner

    You can apply the following workaround:

    1. Create a reflexive transition called "Copy last comment" at target status of the transition executed from the portal. Transition "Copy last comment" has same status as origin and destination, i.e., it doesn't actually change the status. We simply use it for executing post-functions.

    2. Add condition "Transition is triggered by JIRA Workflow Toolbox post-function" to "Copy last comment" transition, in order to hide it to interactive users.

    3. Add post-function "Write field on linked issues or subtasks" to "Copy last comment" transition, and configure it to copy "Last comment" to linked issues or subtasks according to your needs.

    4. Add "Copy a parsed text to a field" post-function to the transition being executed from JSD portal with the following configuration:

    • Target status: Execute transition (delayed execution)
    • Parsing mode: basic
    • Text to be parsed...: Copy last comment

    Let me know if this solution solves your problem.

  4. Patrick Schuh [brainbits] reporter

    Äh... OOoooooookeeeey... ;-)

    Works. :-)

    Is it the same solution for my status problem?

  5. Fidel Castro Armario repo owner

    I don't know the cause of the problem with the status. Please, try replacing "Issue status (delayed writing)" with "Issue status".

  6. Patrick Schuh [brainbits] reporter

    I tried this also... :-( See attached screen.

    Resolution works perfect, status does not.

    04-04-_2017_17-14-55.png 04-04-_2017_17-15-41.png

  7. Fidel Castro Armario repo owner

    The only explanations I can imagine for that failure are:

    1. There isn't a transition from current status to "Geschlossen" in linked issues.
    2. There is a condition or validation that is not being satisfied in the transition to "Geschlossen" status.
    3. There is a post-function that is failing in the transition to "Geschlossen" status and is preventing it from being executed.

    Please, attach a screenshot of conditions, validators and post-functions tab of the transition you want to execute in linked issues.

    Maybe there is an error message in the log file that can explain the problem.

  8. Patrick Schuh [brainbits] reporter

    Ah, sorry. Of course. I was not aware that a transition also needs to be there.

  9. Log in to comment