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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Enable structure manual adjustments while creating structures with scriptrunner in jira

Hello Team,

Thanks in advance.

we are creating structures automatically using scriptrunner.

we want Manual Adjustment should be check by default.

Please suggest a way to allow manual adjustments.

manualAdjustment.PNG

2 answers

1 accepted

0 votes
Answer accepted

Hello Pavan,

The easiest way to do this is with Scriptrunner is to call ManualAdjustmentService:

import com.atlassian.jira.component.ComponentAccessor as CA

def plugin = CA.pluginAccessor.getPlugin('com.almworks.jira.structure')
def mas = plugin.getModuleDescriptor('adjustment-service').module

// structure ID, flag value:
mas.setEnabledForStructure(353, true)

Please change the structure's id appropriately.

I hope this helps! Please feel free to contact us directly at support.almworks.com if you need further assistance.

Best regards,
Stepan Kholodov
ALM Works

Hello @Stepan Kholodov ,

 Thanks for your solution.

I used the same way but same throwing me error like check exist or not.

structmanualAdjustment.PNG

Can you please share the script you use in full and also clarify what exactly you want it to do? And also please tell us what you get in the Result tab when you try to run the script - is there a particular error there?

Best regards,
Stepan Kholodov
ALM Works

Hello @Stepan Kholodov ,

 it is working now, thanks alot

Like Stepan Kholodov likes this

Hello @Stepan Kholodov ,

I face issue again, like method doesn't exists

Capture.PNG

Hello Pavan,

Please contact us directly at support.almworks.com for proper support. And please send us the script in full along with the error.

Best regards,
Stepan Kholodov
ALM Works

Suggest an answer

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

Presenting the "Best of 2020" Jira Software roundup!

Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...

7,105 views 8 28
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