When using filters I can list the sub-task keys comma seperated.
What I want to be able to do is list its Summary or Description, probably comma or pipe seperated just as the issue keys.
I am trying to use Custom Fields for this issue.subTask Objects...
But cant quite do it..
Any suggestions .. ?
Thanks,
Sar
Yeah, that could work.
If you already have your department field, I would put this in the workflow "create" transition as a post function. Or in a listener for catching when the reporter changes.
If you don't already have a department field, you could create a new script field.
But ultimately, here is a snippet of code for getting the list of groups for a user (assuming you already have an issue object).
ComponentAccessor.userUtil.getGroupNamesForUser(issue.reporter.name).findResults{groupName->
if (!groupName.startsWith('department')) return null //exclude groups that don't start with department
groupName.replaceAll('department-', '') //return just the department
}.join(', ') //in case there is more than 1
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Worked like a charm, thanks again for your help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.