Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Autofill field Customer Request Type

Hello!
Is it possible to fill in a field value in a Service Desk project using the sil script? Autofill should be in the post-function.

1 answer

0 votes

Hello Helen,

Welcome to Atlassian Community!

I believe you are trying to automatically update a field with a specific value when the issue is transitioned, by using a post function with a SIL script provided by Power Scripts App. Is that correct?

The Sil code for that will depend on which fields you are trying to update, but basically you would just need to set the field description/ID with the value you wan. Let me give you an example:

Supposing you would like to update your description when the issue is created, you should follow the steps below:

1 - Create your SIL Code with an editor with the following content:

description = "the value you want"

2 - Navigate to your project > Project Settings > Workflows > Edit > Click in the start transition of your workflow > Post function

3 - Add a SIL post function, selecting the script you created in step one

To know more about SIL post functions and more examples, please check the documentation below:

Power Scripts for JIRA 

Let me know if this information helps.

@Petter Gonçalves  

The Customer Request Type field has several values. The task is to populate the Customer Request Type field relative to the value in another field. An example of my SIL Code:

if(customfield_15503 == "Jira"){

customfield_10230 = "Jira (Project)";

}

But the value "Jira (Project)" is not put in the Customer Request Type field (customfield_10000).

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Software

How to create Jira issus from Excel file?

When to use CSV importer When managing your processes in Jira, there are many occasions where you need to create a lot of tasks. Creating them one by one will cost you a lot of time and effort and i...

4,431 views 22 32
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you