Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a custom workflow post function

Ashwini_More _miniOrange
Contributor
July 3, 2023

Hi,

I want to create a custom workflow post function that will set a custom field in the ticket to the values of the issue reporter's department.

How do I do it?

2 answers

1 accepted

1 vote
Answer accepted
John Funk
Community Champion
July 4, 2023

Hi Ashwini,

I think you asked a similar question in another section of Community. But in a nutshell, you will need to be able to have a source accessible to Jira for that information. Jira does not natively pull values about a user from exterior sources. 

However, I have some clients that have successfully used the Azure AD Attributes app from the Atlassian Marketplace to pull Department/Location and Leader information from their Azure AD environment and populate a custom field in Jira using a post function on Create of the issue. 

Ashwini_More _miniOrange
Contributor
July 5, 2023

Thanks, John.

We are using some scripts to store users' properties like employee ID, and manager email in the user's custom properties given in https://support.atlassian.com/user-management/docs/update-roles-and-properties-for-jira-users/

If we can use these values in automation without any app, that would be great!

Like John Funk likes this
John Funk
Community Champion
July 8, 2023

To my knowledge these are not currently available to the API for automation rules. 

0 votes
Trudy Claspill
Community Champion
July 3, 2023

Where is the issue reporter's department information stored?

Ashwini_More _miniOrange
Contributor
July 5, 2023

The department is stored in the Atlassian's id.atlassian.com profile.

Like John Funk likes this

Suggest an answer

Log in or Sign up to answer