Forums

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

Python Config.ini and JSD Question

Cory Cigas November 1, 2022

Hope this is in the right topic, please let me know if it is not. I am currently rebuilding my Python script to look at a config.ini file for all of the JSD fields since dev and prod JSD have different customfield numbers. My issue though is translating that into the properties when accessing the field in JSD. 

So before I added the config file I would have something like this

var1 = issue.fields.customfield10000

But now with a config.ini file handling all of the custom fields I have something like this, with DEV being one of my sections in the ini file.

config_data = config['DEV']

var1 = issue.fields.config_data:['item']

But with this, I receive an error saying config_data is not part of the property. Basically saying config_data could not be found in the fields. 

So what do I do here exactly? I am not a python dev exactly, I just write a few things here or there for my team so really hoping someone could help me out. 

Thank you!

1 answer

0 votes
Kai Becker
Community Champion
November 2, 2022

Hi @Cory Cigas

would you mind sharing your code, to better understand the setup?

To be honest, I guess you will be more successful asking this question on stack overflow, as it is not quite a JSM problem, but I will try to help anyway.

Cory Cigas November 3, 2022

I had to use the following to get it done. 

issue.get_field.config_data[‘item’]

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events