python jira return the content of a filter - python-jira

I'm new in jira python and I want to have a list with tickets obtained with an existing filter.
I tried jira.filter(id) but instead receiving the list with issue, I received only the name of the filter.
Using jira.search_issue is working, but because my filter can be change by other guys I need something that will take in account those changes of filter content.
Any ideas?
Thanks!

Use filter ID in jira.search_issue.
for i in jira.search_issues('filter=25471'):
print i.key

Related

Filter Google Cloud Security Command Center Findings by Folder

I am trying to filter Google Cloud Security Command Center finding notifications by filter using this link. https://cloud.google.com/security-command-center/docs/how-to-api-filter-notifications
state or parent works fine to filter for. source_properties is one of the fields. Within source_properties ResourcePath is one of the fields, but when I submit to create a field I get back ERROR: (gcloud.scc.notifications.create) INVALID_ARGUMENT: Invalid Filter. If specified, filter should be on a field in the request.
Have tried "state = "ACTIVE" AND source_properties.resourcepath.folders = "456353778849""" filters like this. Anyone had any luck with this and what syntax do you use?
Use this format state="ACTIVE" AND source_properties.resourcepath:"456353778849"
The colon : is a "contain" notation.

Need To make list in selenium to find elements by xpath

driver.find_element_by_xpath('//*[#id="PolarisTextField10"]').send_keys(img.value)
every order to add media change the number PolarisTextField[10]
I need to write a list like that
driver.find_element_by_xpath('//[#id="PolarisTextField["10,11,etc"]"]').send_keys(img.value)
sorry but i am beginner
Try the below solution where we are using find_elements_by_xpath to get all elements that starts with PolarisTextField id.
inputs = len(driver.find_elements_by_xpath("//*[starts-with(#id,'PolarisTextField')]"))
for inputIndex in range(inputs):
driver.find_elements_by_xpath("//*[starts-with(#id,'PolarisTextField')]")[inputIndex].send_keys("text goes here")

Custom Record with Custom Sublist - access data?

Is there a way to access a custom sublist on a custom record via suitescript? I have a record that users will enter criteria into that will then populate a bom in the sublists section via a saved search. Is there a way to access this data? When I try to run currentRecord.getSublists(), it says that it is not a function.
Any help is appreciated. Thanks!
Just in case people still run into this issue, it's a matter of dynamic vs static records.
currentRecord in a User Event is both a static record and cannot be "saved" (i.e. if you want to make changes in an afterSubmit method).
You'll want to record.load in dynamic mode to get what you are looking for.
var linect = rec.getLineItemCount('recmachcustrecord');

NetSuite sublist

I am having a problem finding out an id of a sublist. I am using SuiteScript 1.0. For instance, I need to list the components of an assembly item record, how do I find out the list id and the "type and field name to use in the nlapiGetCurrentLineItemValue or nlapiGetCurrentLineItemValue methods. What I am looking for is how now and in the future when presented with a sublist, do I go about finding the ids of the objects needed. I have internal ids turned on but that does not help in the sublist view. What is the best way to get this information when I need it? thanks for any help you may give.
You can use nlapiGetAllLineItems() to get an array of all the sublists. You may need to load the record first and do record.getAllLineItems()
I have found the most useful method for figuring out internalids is to run nlapiLoadRecord(..) in your Browser Console and examine the resulting object. Another trick is the add &xml=T to the end of the URL of the record, which displays the record in XML format. NetSuite also documents most of the internalids in the Records Browser.
In this case you use console in Google Chrome. Open the Specific Assembly Item Record page and Press F12 and select console.After give following code
nlapiLoadRecord('assemblyitem', 90088(id for specific record));
after show result in console. Select linefields and Item. Now it show the fields of sublist. If You have any doubt let me know.

SharePoint Custom Fields In List View

I've got a requirement to hold a DateTime value in a SharePoint field but to customise the display in a list view so that it shows as a mmmm string. The underlying value must remain as the DateTime so the sort is chronological rather than alphabetical.
So I think that a Custom Field is the way to go, I'll also get some added benefit in restricting the user interface to a month picker so even if there is another solution I'll likely go down this route to get that.
I've read that I can apply custom templates to the new, edit and display actions but I can't seem to find anything saying how to alter the list view (display patterns doesn't seem to be enough).
Anyone got any ideas?
Thanks
Justin
I dont know if this is what you are looking for but I have used a solution with a custom fieldcontrol that overrides RenderFieldForDisplay like:
protected override void RenderFieldForDisplay(HtmlTextWriter output)
This is a similar post:
How to manage column based access control in Sharepoint lists?
Ended up using a bit of an ugly series of <IfSubString> within the RenderPattern...

Resources