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?
@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 !
@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.
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.
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.
Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events