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

Is it possible to have a scripted select list which contain options as values of other fields

I have a requirement of a select list custom field for a particular project which can have dynamic options such as:

There is a number field : Bnum

System field in jira: Summary

The option should appear like "<Value of Bnum><space><Value of summary>"

So the no of options dynamically increase with the number of issues that are created within that particular project.

e.g. Issue 1: Bnum=123

                   Summary= abcd

      Issue 2: Bnum=456

                 Summary = efgh

Then field options should be:

  • 123 abcd
  • 456 efgh

 

 

5 answers

Tried script from this page:

https://scriptrunner.adaptavist.com/latest/jira/behaviours-conversions.html#_walkthrough_pick_from_jira_issues

But still need to figure out how to fetch value of fields from the result of JQL and use them to form a concatenated string that can be added as options.

Please help.

Thanks and Regards,

Swapnil Srivastav.

0 votes

I would very strongly recommend that you do NOT do this.  A list of custom field options that gets too long (and it will in this case) will rapidly become useless to users and then start hurting performance if it continues to grow.

Could you explain why you are trying to do this?  Of what possible use is it to the end-users?

Hello @Nic Brough {Adaptavist} ,

Thank you for the response.

It is a requirement from a customer. They want that they need not go to the Issue Navigator and find values from there and then enter it in a text field. They want it to be automated, I guess.

Regards,

Swapnil Srivastav.

"A requirement from a customer" is not an answer.  Could you explain why they think they want to do this?  Get them to explain of what possible use it is to them?

Hello @Nic Brough {Adaptavist} ,

They need these values and they want to automate the process of going to the Issue Navigator and view from there and then manually enter this information in a text field.

Could you please help!

Regards,

Swapnil Srivastav.

Hello @Nic Brough {Adaptavist} ,

They need these options as they want the value of number field of other issues to be visible so that they can create a new ticket having an idea to which previous number it is related to. 

Also, isn't Select List Conversions (https://scriptrunner.adaptavist.com/4.3.5/jira/behaviours-conversions.html) an option to do such sort of implementations.

I understand that it would impact the performance but it is an urgent and important requirement.

Please help me out here, if you have any suggestions.

Thanks and Regards

Swapnil Srivastav

I'm afraid "they need this" is still not an answer.

Could you explain why they think they want to do this? Get them to explain of what possible use it is to them?  Why are they not using issue links?

I have tried:

Both of them not working for me. 

Any help would be appreciated.

Thanks and Regards,

Swapnil Srivastav.

Hello @JamieA ,

Could you please have a look.

Thanks and Regards,

Swapnil Srivastav.

Hello Swapnil,

Any Update on your Request as I have also similar request 

Where I need to grab the Summary of the all Issue from a project and pass it to a customfield that I can use it as a Select list to create a Issue of another project 

 

Thanks

Govind

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

375 views 1 3
Join discussion

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