Hi,
We have a dedicated project where the users are creating tickets which needs to be validated by their manager before to be send in an approved status. Currently, we ask the users to assign their manager to do it.
I am trying to find a way to automate that. Is there a way to have a hierarchy of the users in Jira to define users N+1 which I can user after in the workflow to automatically assign the issue to those N+1 for validation ?
Thanks in advance
Hi,
I found a way to do it. I will have to create a property manager with the value Username of the user's manager and then, create a custom script post function in my workflow with the following script
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.user.UserPropertyManager
import com.atlassian.jira.user.ApplicationUser
import com.atlassian.jira.issue.util.DefaultIssueChangeHolder
import com.atlassian.jira.issue.ModifiedValue
//Gets the user property value based on the key.
def propertyKey = 'manager'; //Property name
UserPropertyManager userPropertyManager = ComponentAccessor.getUserPropertyManager();
def propertyValue = userPropertyManager.getPropertySet(issue.getReporter())?.getString('jira.meta.'+propertyKey);
//Gets the approver based on the property.
ApplicationUser approver = ComponentAccessor.getUserManager().getUserByKey(propertyValue);
issue.setAssignee(approver);
In my case, it works, hope it can help.
Arthur
Hi @Arthur S - Not sure if you already solved this issue, but if you're open to using an app, I would like to share a potential solution that may help in this scenario: MindPro Sync.
Basically, this app allows you to:
If this solution fits your use case, give it a try.
All the best,
Eduardo from MindPro (Marketplace Partner)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Arthur S ,
multiple approvals is not a builtin feature within JIRA. My suggestion is to try Herzum Approval Plugin https://marketplace.atlassian.com/apps/1211763/herzum-approval?tab=overview&hosting=server that allows to manage multiple approval and move ticket automatically to a new status when approval validation has been validated.
Hope this helps,
Fabio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thank you but it's not what I am looking for. My current issue is to be able to know people's manager into Jira. I have an external source which can provide me this information and I am looking how to include it into Jira in order to use it for that kind of project.
Best,
Arthur
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry for the misunderstanding.
The only way to do that is to develop your own post function on creation that automatically assign issue to reporter manager retrieving user manager from the external source.
I saw that plugin https://marketplace.atlassian.com/apps/42075/metadata-for-jira?tab=overview&hosting=server that allows you to add metadata to users. Btw, I don't know if that information can be automatically imported forom the external source and if that information can be used by an automation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you, it looks like it would do the trick. I was looking to do it without a plugin but if I have no choice, I will test it.
I saw we can add property on user, I was also thinking it could do the trick, no ?
Thanks,
Arthur
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.
Hi, @Arthur S
You can try Business Process Manager for solving this issue. We have a special Approver step that allows streamlining any processes that have been accepted by another person.
This add-on is developed by my SaaSJet team, so If you have any additional questions, I'm here to help you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks but it's not what I am looking for. My question is how to get people's manager to auto assign them for approval.
Best,
Arthur
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, I misunderstand you. I guess that optimization can help to solve your issue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.