Forums

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

How to get Organizations field auto-filled when Jira customer raises a request

Jean-Philippe_Masson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 6, 2020

Hello,

We are currently evaluating JSD (server v 4.7.1) and are running into difficulties getting one of our key requirement fulfilled. That is to get the organization field automatically populated when a request is raised by a known (registered) JSD customer whether it comes from an email or from the portal. Is there any away to get this working ?

We went through several articles/suggestions but none really meets our expectations (e.g. adopt JSD Cloud version with which this "feature" is apparently available out of the box through workflow post-function, subscribe to a Jira Addon...).

Any thought ?

Thanks,

JP 

 

1 answer

1 vote
Yogananth
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 14, 2020

Workflow changes is required.

1. You can select the appropriate workflow and go to edit option from Administration screen.

2. You can to select new status on the create transition step.

3. Go to post condition - Add post function and select the below,

Set field value (JMWE add-on)    Set the value of a field to a constant value or the result of a Groovy expression or Groovy Template.

4. Select custom field Organization from drop down

5. Select value type "Groovy Expression"

6. Place the below code in the value text field,

switch (issue.getAsString("Custom Field Name")) /*example: for custom field name is "Instance" */

{
case "trackerName1" : return customfield ID ; /*Example: Integer number 11*/
case "trackerName2" : return customfield ID; /*Example: Integer number 12*/
case "trackerName3" : return customfield ID; /*Example: Integer number 13*/
case "trackerName4" : return customfield ID; /*Example: Integer number 14*/
case "trackerName5" : return customfield ID; /*Example: Integer number 15*/
case "trackerName6" : return customfield ID; /*Example: Integer number 16*/
default : return ""
}

7 Save it.

8. Publish the workflow.

 

Now you can create a new support request and check the same.

2020-06-15_11h32_02.pngRefer the above working screen with organization filed updated.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events