Location of post function information

I recently used the Workflow Sharing Plugin to copy a workflow from our test to production environment. This plugin recreated 2 fields that already existed. I therefore deleted the additional fields created. Now, I see the following issue when looking at the post function for a transition:

Type: class
Class: com.googlecode.jsu.workflow.function.UpdateIssueCustomFieldPostFunction
Arguments:
field.value = %%CURRENT_USER%%
field.name = customfield_10731

and obviously, the transition fails because the custom field cannot be found. Rather than having to recreate the entire workflow (as I am not able to edit this post function), I am trying to recreate the field and adjust the new field's ID to match 10731 (a hack, I know!). However, looks like simply changing it in the table: customfield is not enough.

My question is this: Where does the plugin: JIRA Suite Utilities (which provides this post function functionality) store the above information in a workflow? I do not see a database table that would store it.

Cheers.

1 answer

1 accepted

4 votes

Hi Jig,

Rather than editing the custom field's ID, I think you can edit the workflow's XML instead and either remove the post-function or edit it to "customfield_otherID".

select * from jiraworkflows where workflowname = 'YOUR WORKFLOW NAME';

Copy the descriptor column to a text editor and edit the workflow as you need. Then, update the column with the edited XML and restart JIRA. Just create an XML backup and try this in a test environment first to avoid any issues.

Cheers!

Sorry, regarding your question.

Type: class
Class: com.googlecode.jsu.workflow.function.UpdateIssueCustomFieldPostFunction
Arguments:
field.value = %%CURRENT_USER%%
field.name = customfield_10731

This information is stored in the workflow's XML I've mentioned. :)

Perfect - worked like a charm in Test. Appreciate your help Matheus.

Nice! You are welcome, Jig. :)

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Posted 11 hours ago in Jira

We want to know what Jira Service Desk apps you're using!

Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...

34 views 0 5
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you