I have a node.js web-app added to jira as user-installed app.
My app has some simple data:
{name: process_1},
{name: process_2},
{name: process_3}
What I need to do is:
Add a custom field named "tl_process" to the New Issue jira form
Have tl_process field list all the data from my app, eg: "process_1", "process_2", "process_3" as selectable values
2.1 Important note: these values should be supplied to jira by my webapp
When a user creates new jira issue with tl_process value process_2 for example - my webapp should receive a notification about it. Then I will set my data to:
{name: process_1, active: true}
What would be the best course of action to follow here?
Add a custom field named "tl_process" to the New Issue jira form
If you want the field to be seen in the issue view, you might want to consider using the Issue Field module. If you really want a custom field, check the REST API here.
Have tl_process field list all the data from my app, eg: "process_1", "process_2", "process_3" as selectable values
If you go the Issue Field route, you can also add values by using Create issue field option REST API.
When a user creates new jira issue with tl_process value process_2 for example - my webapp should receive a notification about it. Then I will set my data to:
For this, you need to create an endpoint on your app and trigger a webhook to call your app.
Related
I'm on a project in which I need to get data from a ServiceNow instance and treat all data with PowerBI. I'm able to retrieve a big amount of data (Snow collect a lot of data), but I still need a way to filter data correctly. I'm calling to this URL:
Besides, I want also to apply a filter to retrieve just some specific registries from the table Requested Items. For that, I use the sysparm_query parameter to filter the field "cmdb_ci" and more specifically it's "name", something like:
&sysparm_query=cmdb_ci=What I need to Filter
Apart from this, I have also tried:
&sysparm_query=cmdb_ci.value=What I need to Filter
&sysparm_query=cmdb_ci.display_value=What I need to Filter
&sysparm_query=cmdb_ci.sys_id=What I need to Filter
&sysparm_query=cmdb_ci.name=What I need to Filter
But still not found the solution... as all these does not respond the solution needed.
Does someone know how I can manage this?
Thanks!!
JLG
There are two "Configuration item" fields in sc_req_item: cmdb_ci and configuration_item. Make sure that you are using the correct one. Either cmdb_ci.name=value or configuration_item.name=value should work, depending on which of the two fields you are using. cmdb_ci.value and cmdb_ci.display_value will not work as there are no fields on the record with these names. cmdb_ci.sys_id should work if you are supplying a sys_id (although it is redundant to type .sys_id for a reference field).
You should first verify your query through the ServiceNow UI before attempting to use it in an API call.
Type sc_req_item.list in the Filter navigator
On the filter list select "Show related fields"
Get your filter to work correctly
Right-click on the filter and select "Copy query"
The next step is to test it using the REST API Explorer.
Final step is to configure your client tool (PowerBI).
I’m using Oberon forms version 2019.2 CE.
I want to migrate autocomplete field to dynamic dropdown. As resource (Resource URL) I'm using address: <my_service_address>/name={$fr-search-value}¶m2={../c_field_name}
c_field_name is other dynamic dropdown.
When I’m using autocomplete everything is fine (correct response from service), but when I switch to dynamic dropdown the response is incorrect (empty response). It looks like {../c_field_name} is empty value.
When I pass some test value to my service (instead of {../c_field_name}), for example:
<my_service_address>/name={$fr-search-value}¶m2=1
everything work fine, so my service working well.
I tried to use $c_field_name instead of {../c_field_name}, but it is not worked.
Do you have any suggestions?
Instead of ../c_field_name, use xxf:instance('fr-form-instance')//c_field_name.
Also see the form attached to this message, which uses this technique to create chained dropdowns, where each dropdown passes to the service the value selected by the user in the previous dropdown. And ideally, you should be able to just write $c_field_name, which is covered by request for enhancement #309.
Hi I am trying get the options from custom field but always getting the results like:
{
"expan":"projets",
"projects":[]
}
The id for custom field is customfield_10412 and the project key is TCA. Right now I am trying the below uri:
https://atlassian/jira/rest/api/2/issue/createmeta?projectKeys=TCA&issuetypeNames=Test&expand=projects.issuetypes.fields
It could be you are not logged in to your Jira instance yet, therefore you gain no results returned.
Source: https://developer.atlassian.com/jiradev/jira-apis/jira-rest-apis/jira-rest-api-tutorials/jira-rest-api-example-basic-authentication
Hope this helps
I am using the Salesforce CRM in one of my IOS - iPad project, we are trying to add data back to Salesforce. Can anybody tell me how this can be achieved?
We are using the SOAP API and also SudzC.com library. Below is the sample Request snippet.
How do we generate externalIDFieldName?
<soapenv:Body>
<urn:upsert>
<!--Custom Field defined in Setup as the External ID-->
<urn:externalIDFieldName>
<b>External_Id__c</b>
</urn:externalIDFieldName>
<urn:sObjects xsi:type="Account"> <!--Zero or more repetitions:-->
<b><!--Existing Id, this record will be updated--></b>
<External_Id__c><b>ars1</b></External_Id__c>
<Name><b>Acme Rocket Superstore</b></Name>
<b><!--You may enter ANY elements at this point--></b>
<NumberOfEmployees><b>340</b></NumberOfEmployees>
</urn:sObjects>
<urn:sObjects xsi:type="Account">
<b><!--New External Id, this record will be created (ensure required fields are present)--></b>
<External_Id__c><b>ams1</b></External_Id__c>
<Name><b>Acme Medical Supplies</b></Name>
<NumberOfEmployees><b>17</b></NumberOfEmployees>
</urn:sObjects>
</urn:upsert>
</soapenv:Body>
By looking at the field name: External_Id__c you can tell that this is a custom field (ends in __c) on the Account object which is specific to the Salesforce org you're interacting with. Presumably it's supposed to represent an ID from an external system, but I can't tell you if someone is creating a field for you to use in the app, or if it's supposed to be an ID from another database somewhere.
You need to talk to the engineers working on the Salesforce side to find out what it's purpose is, if it is for you then I'd suggest some combination of the current date, time and another piece of information to generate something unique.
upsert is update/insert command. based on the data(try passing pass the table name and id) u send, it will either update or insert record in cloud.
I have created a custom list. I am using the same list in sharepoint designer through a page.
I a have a datetime field in the form. I want to make a default current date and time and let it make readonly.
How can I do the same.
thanks
As I understood you, you want to set custom permissions on a date field (column) in a custom list. Sharepoint 2007 does not allow column-level security via the UI as far as I know.
If you deployed the list definition via Feature you can set the site columns to be read-only by setting the field to read only via its column definitions like so:
Hidden="FALSE" ReadOnly="TRUE" Required="FALSE" PITarget="" PrimaryPITarget="" PIAttribute="" PrimaryPIAttribute="" Node=""
An easier solution is to use third party tools such as the Sharepoint Tool Basket. It has a feature called "List Manager" which allows you to set columns to read-only if it's not a system column - see the codeplex site for screenshots.
As for your datetime field having the date of Today, you can just create a new Site Column of type Date/Time and set its default value to be "Today".
So the easiest solution would be: Install the List Manager and activate the feature for your site. Create a new site column "Today" of type Date/Time with default value set to Today. Afterwards set the site column to read-only via the List Manager.