• Community
  • Questions
  • How do I update component field using post functions in a transition?

How do I update component field using post functions in a transition?

I have the JIRA Utilities Suite installed and there are two options but neither offer Component as an update field:

1. Update Issue Custom Field:Updates an issue custom field to a given value.

2. Update Issue Field:Updates a simple issue field to a given value.

Is this a problem with my Component field type or is Component not able to be edited using Post Functions?

Specifically, I want all issues of a single type to be assigned into a specific Component.

5 answers

1 accepted

Short answer would be no.

@All Thanks for all the suggestions. In the basic install of OnDemand with JIRA Utilities Suite, We are not able to update Component(s) field as a post function (which seems like a no brainer).

To update the Component(s) field as a transition Post Function, I have two options:

  1. Install Bob's plugin: https://bobswift.atlassian.net/wiki/display/CW for $300 for this one workflow, which I can't justify to my company.
  2. Write a custom Post Function, which will require updates and maintenance if ever I or another producer want to add the ability in the workflow.

    Neither option seems streamlined or long term. I'll go request it be a field added to the JIRA Utilities Suite.

Again, thanks @All for the suggestions!

2 years later I encountered this problem and here is my solution / hack for whoever else finds this topic on Google:

  1. Create a Custom Field (I used "Components Hack") with a dropdown that has the same options as your  Component/s. Don't need to add it to any screens.
  2. Add a Post Function on transition to Update Custom Field (Components Hack) to Audio or whatever you need
  3. Add another Post Function to "Copy Value from Field to Field" and copy the value from Components Hack to Component/s


It's dirty but it works smile



Thanks, this workaround does work. You have to be careful to use a select list not a regular text field because it wouldn't work that way.

the best way is write a postfunction using java syntax or using script runner plugin


another way is by using javascript you can set default value for component!

Conditioned Workflow Functions for JIRA has a post function for updating issues including components.

Suggest an answer

Log in or Join to answer
Community showcase
Alexey Matveev
Published Saturday in Jira

How to run Jira in a docker container

Everything below is tested on Ubuntu 17.10. I prefer to use Jira in a docker container because: 1. I can install Jira with a couple of commands. 2. I can start and stop Jira just by starting and s...

230 views 6 8
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot