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.
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:
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:
It's dirty but it works
EDIT 4 years later: This workaround is still "helping" people. For the love of your sanity though, if you can, please use a more elegant solution that doesn't make you maintain a separate custom field for no apparent reason.
1. JMWE now supports updating the Component/s field on transition and is a great app overall, I definitely recommend it.
2. Create a custom Scriptrunner script to run on transition. Scriptrunner I see as absolutely vital for JIRA, so I assume everyone has it. Example code to set the component:
def projectComponentManager = ComponentAccessor.getProjectComponentManager()
def component = projectComponentManager.findByComponentName(issue.projectObject.id, "YOUR COMPONENT HERE")
the best way is write a postfunction using java syntax or using script runner plugin
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