I was able to find a useful article on how to set up post-functions for Jira server, however, the document states this does not apply to Jira Cloud. Never the less, I attempted to add the post-functions, but they did not work.
I am trying to set it up for custom fields, where for example, when the user transitions to 'In Progress' it auto stamps them to a custom 'Engineer' field using the '%%CURRENT_USER%%' functionality.
We had this set up at my previous company and I cannot seem to get it to work now. Any tips?
Hey Grayson - welcome to the Community!
You can definitely use a post function in JIRA Cloud. Edit the transition and click on Add post function.
Then choose Update Issue Custom Field from the list.
Select the Engineer field from the drop down for the Issue Custom Field.
Then paste in %%CURRENT_USER%% in the Custom Field Value.
Click the Update button.
Be sure to publish the workflow changes and you should be good to go.
The first thing I would check to to make sure that your custom Engineer field was created as a User Picker (single user) custom field type.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@John Funk That was something I tried after it was not working. I tried again without the Append Value and still no luck. Appreciate the help anyway.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Screenshots of both Transition Post Functions I have in place:
No error. It just does not populate the field with any value. I can also confirm there is not transition setting related to the assignee. I read that if you have transitions limited to assignee it may not work, but that is not the case here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Grayson_Pollock Please try changing the order of your post-function to place it after the default post-function "Add a comment to an issue if one is entered during a transition" and see if it fixes the issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Taranjeet Singh That did it. This was a frustrating one since I copied and pasted the information from Atlassian's note at the bottom of the page with quotes, but now makes sense what they were doing. Really appreciate your help.
@John Funk Thank you as well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
:-), sometimes the cause of the problem is so small that we tend to ignore it and make it a bigger problem in our mind.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Grayson_Pollock Can you share which post-function you added to the workflow and in which order it has been added to the list of post-functions?
Is your goal only to auto-assign issue to the current user making "In Progress" transition? or do you also want to copy the current user value to "Engineer" custom field? If yes, then you will need to use another post-function, which will copy one field value to another. Also, "Engineer" custom field should be of type "User Picker (Single user)".
Hope it helps !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Taranjeet Singh I prefer to leave the Assignee field out of the equation. Simply would like to stamp the Custom fields with the Current User when the transition takes place. Each of the Custom Fields is set to 'User Picker (single user). I made sure to publish the pages as well.
Below is a screenshot of the post-functions in place. I only added the top one, the other were already there. Appreciate your quick responses.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.