our workflow requires, that the owner of a issue always the project lead is. Is it possible to set the author of an issue to the project lead automatically?
Thank you for your comment. We are currently on an OnDemand instance, so this isn't possible).
But I understand, that this is currently not a "core" supported feature (= just configurable) but needs to be scripted by myself (although it seems reasonable easy to do - except the issue with OnDemand).
For new issues:
1. Add custom field Owner to project
2. in your workflow open Create issue tranistion
3. Add postfunction "Update Issue Custom Field" Field "Owner" and as value use project lead username.
4. Add postfunction "Copy Value From Field to Field" (Copy from "Owner" to "Reporter")
5. Make sure about execution order (update should be before copy)
6. Publish workflow
For already existing issues:
Execute bulk change.
This has some consequences - you're adding a "project owner" field to every single issue, and hard-coding the project lead's account into your workflow, so you need a different workflow for each project lead, and you'll need to edit the workflow when you change leads.
If you're willing to accept the change of project lead means workflow editing, then there's a far more simple approach - forget an "owner" field and simply set the reporter to the hard-coded user name. You don't need any plugins to do this if I remember correctly.
Personally, I wouldn't even attempt this, it's an immense amount of pain to set up and nearly as bad to maintain.
I actually found an easy way (for my special case).
The background of my question is, that I don't want "regular" users to change the assigned user - just a small selected part of the staff should do that.
If I remove the permissions to assign users from them and set the default assignee to the project lead, it works as intended, since they can't change it.
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot