- edited description
Copy a parsed text to a field Function fails
There are two single user picker custom fields with identical configuration: Developer and Test Engineer. Developer is set on transition with following list of post-functions:
The following parsed text will be copied to Test Engineer: #Current user# Set issue status to the linked status of the destination workflow step. Add a comment to an issue if one is entered during a transition. Delete Update change history for an issue and store the issue in the database. Re-index an issue to keep indexes in sync with the database. Fire a Generic Event event that can be processed by the listeners. This works fine!
But the following does not : The following parsed text will be copied to Test Engineer: #Current user# The Assignee of the issue will be set to npozdnyakov. The Resolution of the issue will be set to Test passed. Set issue status to the linked status of the destination workflow step. Add a comment to an issue if one is entered during a transition. Update change history for an issue and store the issue in the database. Re-index an issue to keep indexes in sync with the database. Fire a Generic Event event that can be processed by the listeners.
Comments (10)
-
reporter -
repo owner Hi Alexey,
Please, try moving post-function "The following parsed text will be copied to Test Engineer: #Current user#" to second position in execution order, i.e., post-function "The Assignee of the issue will be set to npozdnyakov" should be executed in first place.
There is a strange bug in JIRA, which happens sometimes when you set a custom field (not a virtual field) in first place in execution order in a transition. I have found it happening only in JIRA installations using HSQLDB (JIRA standalone). Which kind of database are you using?
-
reporter Let me try your suggestion and get back to you. We are using PostgreSQL. Not sure which version though. Most likely 8.4
-
reporter Your suggestion did not help
-
repo owner Try doing it in two steps:
- Copy Current User into virtual field Ephemeral string 1.
- Copy Ephemeral string 1 into Test Engineer
If it doesn't work, please attach a screenshot of your transition configuration (only post-function tab is needed) or send it to me (fcarmario@gmail.com).
-
reporter I have another transition from InTesting to Test Failed. It successfully updates Test Engineer field
post-functions: - The following parsed text will be copied to Test Engineer: #Current user# - Set issue status to the linked status of the destination workflow step. - Add a comment to an issue if one is entered during a transition. - Update change history for an issue and store the issue in the database. - Re-index an issue to keep indexes in sync with the database. - Fire a Generic Event event that can be processed by the listeners.
-
reporter Ephemeral string trick did not work either. I'll send you screenshot immediately
-
reporter Per your suggestion I moved resolution change below your post-functions BUT it did NOT solve the problem
-
repo owner The problem was caused by some kind of interaction between JIRA Workflow Toolbox and a post-function of another plugin used to assign issue. By using post-function "Copy parsed text to a field" to assign issue the problem has been solved.
-
repo owner - changed status to resolved
- Log in to comment