I need the organization of any reporter to show up in work items and add it as a column in the open items view.
to be clear i dont want to use the the share feature of the organizations so i dont set the organization in the customer portal.
i only want to be able to see the organization a customer belongs to in any work item.
this should be possible since i can query the organization via jql:
reporter in organizationMembers("OrgName")
Hello @Andreas Schäffler
Welcome to the Atlassian community.
There is only one provided, built-in field for displaying an Organization in a work item, and that is the one used for sharing the item.
If you don't want to use that one, you would need to set up another custom field of a different type, like Short Text, and implement a process to get the Organization for the Report and put the name of the Organization into that field.
In considering that customization, consider also the following:
- what if the Reporter belongs to more than one Organization?
- what if the Reporter is changed?
Hi @Andreas Schäffler I agree with you, this functionality should exist. Please vote for and watch JSDCLOUD-15131 for this functionality.
I've had Atlassian Support help me with this Automation to take the Reporter's Organization and copy it to the Organization of the Work Item. It might have changed a bit, but here's the bulk of what you would need to do.
I needed a bunch of help from Atlassian Support to make this happen for my system. I have an Automation that when the issue is created is grabs the Organization of the Reporter, and then updates the Organization of the issue. Here's the rough layout:
It updates the Organization of the issue with this code:
{
"update": {
"Organizations":
[
{{#webResponse.body.values}}
{"add": {{id}} }
{{^last}},{{/}}{{/}}
]
}
}
The API call is something like this:
but is pretty long and hard to paste screenshots of.. I would contact Atlassian Support if you need more help with the API calls.
Also, I would suggest voting for and watching JSDCLOUD-15131 so this can be done by the system so that the user's Organization can automatically be added to the Issue when it's created without having to use the Automation.
Hope that helps.
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.